Authorization bypass in zsh - CVE-2018-0502
Published: 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 handling of the beginning of a shebang (#!) script file. A local attacker can execute a shebang script file that submits malicious input, pass content from the second line of the file to execve() and execute a program without proper authorization on the system.
Affected software
Gentoo Linux
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
Opensuse
Fedora
zsh
zsh-debuginfo
zsh-debugsource
How to mitigate CVE-2018-0502
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