Buffer overflow in Zsh
CVE-2018-1083
Zsh before version 5.4.2-test-1 is vulnerable to a buffer overflow in the shell autocomplete functionality. A local unprivileged user can create a specially crafted directory path which leads to code execution in the context of the user who tries to use autocomplete to traverse the before mentioned path. If the user affected is privileged, this leads to privilege escalation.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 49.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Zsh — versions before zsh 5.4.2-test-1
- Canonical Ubuntu Linux — versions 14.04, 16.04, 17.10
- Debian Linux — versions 7.0
- 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)
References
- USN-3608-1 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/103572 (Third Party Advisory, VDB Entry, vdb-entry)
- GLSA-201805-10 (vendor-advisory, Third Party Advisory)
- sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7 (Patch, Third Party Advisory)
- RHSA-2018:1932 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- [debian-lts-announce] 20180331 [SECURITY] [DLA 1335-1] zsh security update (mailing-list, Mailing List, Third Party Advisory)
- RHSA-2018:3073 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update (mailing-list)