Authorization bypass in zsh - CVE-2018-13259

 

Authorization bypass in zsh - CVE-2018-13259

Published: September 6, 2018 / Updated: September 8, 2018


Vulnerability identifier: #VU14701
CSH Severity: Low
CVSS v4.0: 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/E:P/U:Clear
CVE-ID: CVE-2018-13259
CWE-ID: CWE-862
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: SourceForge
Affected software:
zsh

Detailed vulnerability description

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.


How to mitigate CVE-2018-13259

Update to version 5.6.

Sources