Authorization bypass in zsh - CVE-2018-13259
Published: September 6, 2018 / Updated: September 8, 2018
Vulnerability details
The vulnerability allows a local attacker to execute a program without proper authorization on the target system.
The vulnerability exists due to improper truncating of shebang (#!) lines that exceed 64 characters. A local attacker can access the shell and submit a shebang line longer than 64 characters, cause the software to make an execve() call to a program name that is a substring of the intended one and execute a program without proper authorization on the system.
Affected software
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Ubuntu
Opensuse
Fedora
zsh (Ubuntu package)
zsh
zsh-debuginfo
zsh-debugsource
How to mitigate CVE-2018-13259
zsh (Ubuntu package) - addressed in versions 5.0.2-3ubuntu6.3, 5.1.1-1ubuntu2.3, 5.4.2-3ubuntu3.1
zsh - addressed in versions 4.3.6-67.9.8.1, 5.0.5-6.12.2
zsh-debuginfo - addressed in versions 4.3.6-67.9.8.1, 5.0.5-6.12.2
zsh-debugsource - addressed in versions 4.3.6-67.9.8.1, 5.0.5-6.12.2
zsh - addressed in versions 5.4.1-4.fc27, 5.5.1-2.fc28, 5.6.2-1.fc29
External References
Related Security Bulletins
- Authorization bypass in zsh
- OpenSUSE Linux update for zsh
- OpenSUSE Linux update for zsh
- Gentoo update for Zsh
- Red Hat update for zsh
- Amazon Linux AMI update for zsh
- SUSE update for zsh
- SUSE update for zsh
- Fedora 29 update for zsh
- Fedora 28 update for zsh
- Fedora 27 update for zsh
- Ubuntu update for zsh