Buffer overflow in zsh - CVE-2018-1083
Published: March 30, 2018 / Updated: April 2, 2018
Vulnerability identifier: #VU11349
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-1083
CWE-ID: CWE-120
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local attacker to gain elevated privileges on the target system.
The weakness exists in the compctl.c source code file due to insufficient bounds checking on the PATH_MAX-sized buffer used for file completion candidates. A local attacker can create a malicious directory path, trick the victim into using the autocomplete functionality to traverse the path, trigger buffer overflow and execute arbitrary code with root privileges.
Successful exploitation of the vulnerability may result in system compromise.
The weakness exists in the compctl.c source code file due to insufficient bounds checking on the PATH_MAX-sized buffer used for file completion candidates. A local attacker can create a malicious directory path, trick the victim into using the autocomplete functionality to traverse the path, trigger buffer overflow and execute arbitrary code with root privileges.
Successful exploitation of the vulnerability may result in system compromise.
Affected software
zsh
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for Power
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Workstation
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux
Slackware Linux
Opensuse
Fedora
zsh (Alpine package)
zsh
zsh-debuginfo
zsh-debugsource
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for Power
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Workstation
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux
Slackware Linux
Opensuse
Fedora
zsh (Alpine package)
zsh
zsh-debuginfo
zsh-debugsource
How to mitigate CVE-2018-1083
Update to version 5.4.2-test-1.
zsh (Alpine package) - update to 5.2-r2
zsh - update to 4.3.6-67.9.8.1
zsh-debuginfo - update to 4.3.6-67.9.8.1
zsh-debugsource - update to 4.3.6-67.9.8.1
zsh - addressed in versions 5.4.1-3.fc27, 5.5-1.fc28
zsh - update to 4.3.6-67.9.8.1
zsh-debuginfo - update to 4.3.6-67.9.8.1
zsh-debugsource - update to 4.3.6-67.9.8.1
zsh - addressed in versions 5.4.1-3.fc27, 5.5-1.fc28
External References
Related Security Bulletins
- Privilege escalation in zsh
- SUSE Linux update for zsh
- OpenSUSE Linux update for zsh
- Gentoo update for Zsh
- Red Hat update for zsh
- Red Hat update for zsh
- OpenSUSE Linux update for zsh
- OpenSUSE Linux update for zsh
- Amazon Linux AMI update for zsh
- Slackware Linux update for zsh
- Red Hat update for zsh
- Buffer overflow in zsh (Alpine package)
- SUSE update for zsh
- Fedora 28 update for zsh
- Fedora 27 update for zsh