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 (46.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 46th percentile — 46.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: -0.000
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.ubuntu.com/3608-1/ (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/103572 (VDB Entry, Third Party Advisory, vdb-entry)
- security.gentoo.org/glsa/201805-10 (vendor-advisory, Third Party Advisory)
- sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7 (Patch, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:1932 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- lists.debian.org/debian-lts-announce/2018/03/msg00038.html (mailing-list, Mailing List, Third Party Advisory)
- access.redhat.com/errata/RHSA-2018:3073 (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2020/12/msg00000.html (mailing-list)
Frequently asked questions
- What is CVE-2018-1083?
- CVE-2018-1083 is a high-severity vulnerability in Zsh, classified under Buffer Copy without Checking Size of Input (Classic Buffer Overflow). CVSS score: 7.8/10. Published 2018-03-28.
- How severe is CVE-2018-1083?
- High severity. CVSS v3 base score is 7.8 out of 10.