Buffer overflow in Zsh
CVE-2018-1100
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the utils.c:checkmailpath function. A local attacker could exploit this to execute arbitrary code in the context of another user.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.005, 45.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Zsh — versions through 5.4.2
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Red Hat Enterprise Linux Desktop — versions 6.0, 7.0
- Red Hat Enterprise Linux Server — versions 6.0, 7.0
- Red Hat Enterprise Linux Workstation — versions 6.0, 7.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, fellipeh/redhat_sec, fhbash/redhat_sec). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- sourceforge.net/p/zsh/code/ci/31f72205630687c1cef89347863aab355296a27f/ (Patch)
- USN-3764-1 (vendor-advisory, Third Party Advisory)
- GLSA-201805-10 (vendor-advisory, Third Party Advisory)
- RHSA-2018:1932 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- RHSA-2018:3073 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update (mailing-list)