PT-2017-4092 · Gnu+3 · Zsh+3
Anthony Sottile
+1
·
Published
2017-11-27
·
Updated
2025-08-23
·
CVE-2018-0502
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
zsh versions prior to 5.6
Description
The issue is related to the incorrect handling of a script containing #!. This could potentially allow a remote attacker to access confidential data, compromise its integrity, and cause a denial of service. The beginning of a #! script file was mishandled, potentially leading to an execve call to a program named on the second line.
Recommendations
For versions prior to 5.6, update to version 5.6 or later to resolve the issue. As a temporary workaround, consider restricting the execution of scripts containing #! to minimize the risk of exploitation.
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Suse
Ubuntu
Zsh