Public Date:
1626184: CVE-2018-13259 zsh: Improper handling of shebang line longer than 64
It was discovered that zsh does not properly validate the shebang of input files and it truncates it to the first 64 bytes. A local attacker may use this flaw to make zsh execute a different binary than what is expected, named with a substring of the shebang one.

Find out more about CVE-2018-13259 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue did not affect the versions of zsh as shipped with Red Hat Enterprise Linux 5 as scripts were directly handled by the kernel and not special-handled by zsh itself.

CVSS v3 metrics

NOTE: The following CVSS v3 metrics and score provided are preliminary and subject to review.

CVSS3 Base Score 5.3
CVSS3 Base Metrics CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Attack Vector Local
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality Low
Integrity Impact Low
Availability Impact Low

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 8 zsh Not affected
Red Hat Enterprise Linux 7 zsh Affected
Red Hat Enterprise Linux 6 zsh Will not fix
Red Hat Enterprise Linux 5 zsh Not affected

External References

Last Modified