CVE-2018-1071
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd()...
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
CVE-2018-1071- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 2.1 Low
AV:L/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
CVE List No score
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
CVE-2018-1071- Weakness
- CWE-121
- Updated
- 2026-11-02
EUVDEUVD-2018-11723 No score
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
EUVD-2018-11723- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xc49-qj7m-vpp4
5.5
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd()...
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
GHSA-xc49-qj7m-vpp4- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-121, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-1071
5.5
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
ALPINE-CVE-2018-1071- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
5.5
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
CVE-2018-1071- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSVDEBIAN-CVE-2018-1071
5.5
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
DEBIAN-CVE-2018-1071- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2018:3073
7.5
Red Hat Security Advisory: zsh security and bug fix update
- Record
RHSA-2018:3073- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-1071
5.5
zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
- Record
UBUNTU-CVE-2018-1071- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1777051205 No score
zsh: Fix of 3 CVEs
- CVE-2018-1071: check bounds when copying path in hashcmd()
- CVE-2018-7549: avoid crash copying empty hash table
- CVE-2018-13259: fix shebang line truncation in zexecve()
- Record
CLSA-2026-1777051205- Updated
- 2026-11-02
OSVCLSA-2026-1777051545 No score
zsh: Fix of 3 CVEs
- CVE-2018-1071: check bounds when copying path in hashcmd()
- CVE-2018-7549: avoid crash copying empty hash table
- CVE-2018-13259: fix shebang line truncation in zexecve()
- Record
CLSA-2026-1777051545- Updated
- 2026-11-02
OSVMGASA-2018-0206 No score
Updated zsh packages fix security vulnerabilities
Richard Maciel Costa discovered that Zsh incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service (CVE-2018-1071).
It was discovered that Zsh incorrectly handled certain files. An attacker could possibly use this to execute arbitrary code (CVE-2018-1083).
- Record
MGASA-2018-0206- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11543-1 No score
zsh-5.8-7.7 on GA media
These are all security issues fixed in the zsh-5.8-7.7 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11543-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1072-1 No score
Security update for zsh
This update for zsh fixes the following issues:
-
CVE-2014-10070: environment variable injection could lead to local privilege escalation (bnc#1082885)
-
CVE-2014-10071: buffer overflow in exec.c could lead to denial of service. (bnc#1082977)
-
CVE-2014-10072: buffer overflow In utils.c when scanning very long directory paths for symbolic links. (bnc#1082975)
-
CVE-2016-10714: In zsh before 5.3, an off-by-one error resulted in undersized buffers that were intended to support PATH_MAX characters. (bnc#1083250)
-
CVE-2017-18205: In builtin.c when sh compatibility mode is used, a NULL pointer dereference could lead to denial of service (bnc#1082998)
-
CVE-2018-1071: exec.c:hashcmd() function vulnerability could lead to denial of service. (bnc#1084656)
-
CVE-2018-1083: Autocomplete vulnerability could lead to privilege escalation. (bnc#1087026)
-
CVE-2018-7549: In params.c in zsh through 5.4.2, there is a crash during a copy of an empty hash table, as demonstrated by typeset -p. (bnc#1082991)
-
CVE-2017-18206: buffer overrun in xsymlinks could lead to denial of service (bnc#1083002)
-
Autocomplete and REPORTTIME broken (bsc#896914)
- Record
SUSE-SU-2018:1072-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1874-1 No score
Security update for zsh
This update for zsh to version 5.5 fixes the following issues:
Security issues fixed:
- CVE-2018-1100: Fixes a buffer overflow in utils.c:checkmailpath() that can lead to local arbitrary code execution (bsc#1089030)
- CVE-2018-1071: Fixed a stack-based buffer overflow in exec.c:hashcmd() (bsc#1084656)
- CVE-2018-1083: Fixed a stack-based buffer overflow in gen_matches_files() at compctl.c (bsc#1087026)
Non-security issues fixed:
- The effect of the NO_INTERACTIVE_COMMENTS option extends into $(...)
and
...command substitutions when used on the command line. - The 'exec' and 'command' precommand modifiers, and options to them, are now parsed after parameter expansion.
- Functions executed by ZLE widgets no longer have their standard input closed, but redirected from /dev/null instead.
- There is an option WARN_NESTED_VAR, a companion to the existing WARN_CREATE_GLOBAL that causes a warning if a function updates a variable from an enclosing scope without using typeset -g.
- zmodload now has an option -s to be silent on a failure to find a module but still print other errors.
- Record
SUSE-SU-2018:1874-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:14910-1 No score
Security update for zsh
This update for zsh fixes the following issues:
- CVE-2019-20044: Fixed an insecure dropping of privileges when unsetting the PRIVILEGED option (bsc#1163882).
- CVE-2018-13259: Fixed an unexpected truncation of long shebang lines (bsc#1107294).
- CVE-2018-7549: Fixed a crash when an empty hash table (bsc#1082991).
- CVE-2018-1083: Fixed a stack-based buffer overflow when using tab completion on directories with long names (bsc#1087026).
- CVE-2018-1071: Fixed a stack-based buffer overflow when executing certain commands (bsc#1084656).
- CVE-2018-0502: Fixed a mishandling of shebang lines (bsc#1107296).
- CVE-2017-18206: Fixed a buffer overflow related to symlink processing (bsc#1083002).
- CVE-2017-18205: Fixed an application crash when using cd with no arguments (bsc#1082998).
- CVE-2016-10714: Fixed a potential application crash when handling maximum length paths (bsc#1083250).
- CVE-2014-10072: Fixed a buffer overflow when scanning very long directory paths for symbolic links (bsc#1082975).
- CVE-2014-10071: Fixed a buffer overflow when redirecting output to a long file descriptor (bsc#1082977).
- CVE-2014-10070: Fixed a privilege escalation vulnerability via environment variables (bsc#1082885).
- Record
SUSE-SU-2022:14910-1- Updated
- 2026-11-02
OSVUSN-3608-1 No score
zsh vulnerabilities
Richard Maciel Costa discovered that Zsh incorrectly handled certain inputs. An attacker could possibly use this to cause a denial of service. (CVE-2018-1071)
It was discovered that Zsh incorrectly handled certain files. An attacker could possibly use this to execute arbitrary code. (CVE-2018-1083)
- Record
USN-3608-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
zshAlpine:v3.10 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.11 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.12 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.13 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.14 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.15 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.16 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.17 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.18 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.19 |
before 5.4.2-r1 | 5.4.2-r1 |
Show 44 moreShow less
| Package | Affected | Fixed |
|---|---|---|
zshAlpine:v3.20 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.21 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.22 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.23 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.24 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.4 |
before 5.2-r2 | 5.2-r2 |
zshAlpine:v3.5 |
before 5.2-r4 | 5.2-r4 |
zshAlpine:v3.6 |
before 5.3.1-r1 | 5.3.1-r1 |
zshAlpine:v3.7 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.8 |
before 5.4.2-r1 | 5.4.2-r1 |
zshAlpine:v3.9 |
before 5.4.2-r1 | 5.4.2-r1 |
zshTuxCare:CentOS:6 From an advisory covering 3 CVEs |
before 4.3.11-11.el6_10.tuxcare.els1 | 4.3.11-11.el6_10.tuxcare.els1 |
zsh-htmlTuxCare:CentOS:6 From an advisory covering 3 CVEs |
before 4.3.11-11.el6_10.tuxcare.els1 | 4.3.11-11.el6_10.tuxcare.els1 |
zshTuxCare:OracleLinux:6 From an advisory covering 3 CVEs |
before 4.3.11-11.el6_10.tuxcare.els1 | 4.3.11-11.el6_10.tuxcare.els1 |
zsh-htmlTuxCare:OracleLinux:6 From an advisory covering 3 CVEs |
before 4.3.11-11.el6_10.tuxcare.els1 | 4.3.11-11.el6_10.tuxcare.els1 |
zshDebian:12 |
before 5.4.2-4 | 5.4.2-4 |
zshDebian:13 |
before 5.4.2-4 | 5.4.2-4 |
zshDebian:14 |
before 5.4.2-4 | 5.4.2-4 |
zshDebian:7 From an advisory covering 2 CVEs |
before 4.3.17-1+deb7u2, plus listed versions 4.3.17-14.3.17-1+deb7u1 |
4.3.17-1+deb7u2 |
zshDebian:9 From an advisory covering 7 CVEs |
before 5.3.1-4+deb9u1, plus listed versions 5.3.1-4 |
5.3.1-4+deb9u1 |
zshMageia:6 From an advisory covering 2 CVEs |
before 5.5-1.1.mga6 | 5.5-1.1.mga6 |
zshRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-debuginfoRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-htmlRed Hat:enterprise_linux:7::client From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zshRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-debuginfoRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-htmlRed Hat:enterprise_linux:7::computenode From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zshRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-debuginfoRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-htmlRed Hat:enterprise_linux:7::server From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zshRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-debuginfoRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zsh-htmlRed Hat:enterprise_linux:7::workstation From an advisory covering 8 CVEs |
before 0:5.0.2-31.el7 | 0:5.0.2-31.el7 |
zshSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 9 CVEs |
before 5.0.5-6.7.2 | 5.0.5-6.7.2 |
zshSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 9 CVEs |
before 5.0.5-6.7.2 | 5.0.5-6.7.2 |
zshSUSE:Linux Enterprise Server for SAP Applications 12 SP3 From an advisory covering 9 CVEs |
before 5.0.5-6.7.2 | 5.0.5-6.7.2 |
zshSUSE:Linux Enterprise Module for Basesystem 15 From an advisory covering 3 CVEs |
before 5.5-3.3.15 | 5.5-3.3.15 |
zshSUSE:Linux Enterprise Point of Sale 11 SP3 From an advisory covering 12 CVEs |
before 4.3.6-67.9.8.1 | 4.3.6-67.9.8.1 |
zshSUSE:Linux Enterprise Server 11 SP4-LTSS From an advisory covering 12 CVEs |
before 4.3.6-67.9.8.1 | 4.3.6-67.9.8.1 |
zshUbuntu:14.04:LTS |
before 5.0.2-3ubuntu6.2, plus listed versions 5.0.2-3ubuntu65.0.2-3ubuntu6.1 |
5.0.2-3ubuntu6.2 |
zshUbuntu:16.04:LTS |
before 5.1.1-1ubuntu2.2, plus listed versions 5.1.1-1ubuntu15.1.1-1ubuntu25.1.1-1ubuntu2.1 |
5.1.1-1ubuntu2.2 |
zshUbuntu:14.04:LTS From an advisory covering 2 CVEs |
before 5.0.2-3ubuntu6.2, plus listed versions 5.0.2-3ubuntu65.0.2-3ubuntu6.1 |
5.0.2-3ubuntu6.2 |
zshUbuntu:16.04:LTS From an advisory covering 2 CVEs |
before 5.1.1-1ubuntu2.2, plus listed versions 5.1.1-1ubuntu15.1.1-1ubuntu25.1.1-1ubuntu2.1 |
5.1.1-1ubuntu2.2 |
zshopenSUSE:Tumbleweed From an advisory covering 6 CVEs |
before 5.8-7.7 | 5.8-7.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-1071 is a medium vulnerability (CVSS 5.5) in Zsh, published March 9, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.43%, the 37th percentile. Fixed in zsh 5.4.2-r1.
References
bugzilla.redhat.com/show_bug.cgi?id=1553531
usn.ubuntu.com/3608-1
securityfocus.com/bid/103359
security.gentoo.org/glsa/201805-10
lists.debian.org/debian-lts-announce/2018/03/msg00038.html
access.redhat.com/errata/RHSA-2018:3073
Show 75 moreShow less
lists.debian.org/debian-lts-announce/2020/12/msg00000.html
nvd.nist.gov/vuln/detail/CVE-2018-1071
access.redhat.com/security/cve/CVE-2018-1071
github.com/advisories/GHSA-xc49-qj7m-vpp4
security.alpinelinux.org/vuln/CVE-2018-1071
errata.tuxcare.com/els_os/centos6els/CLSA-2026-1777051205.html
errata.tuxcare.com/els_os/oraclelinux6els/CLSA-2026-1777051545.html
security-tracker.debian.org/tracker/CVE-2018-1071
advisories.mageia.org/MGASA-2018-0206.html
bugs.mageia.org/show_bug.cgi?id=22846
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.6_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1549836
bugzilla.redhat.com/show_bug.cgi?id=1549855
bugzilla.redhat.com/show_bug.cgi?id=1549858
bugzilla.redhat.com/show_bug.cgi?id=1549861
bugzilla.redhat.com/show_bug.cgi?id=1549862
bugzilla.redhat.com/show_bug.cgi?id=1557382
bugzilla.redhat.com/show_bug.cgi?id=1563395
security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3073.json
access.redhat.com/security/cve/CVE-2014-10071
cve.org/CVERecord?id=CVE-2014-10071
nvd.nist.gov/vuln/detail/CVE-2014-10071
access.redhat.com/security/cve/CVE-2014-10072
cve.org/CVERecord?id=CVE-2014-10072
nvd.nist.gov/vuln/detail/CVE-2014-10072
access.redhat.com/security/cve/CVE-2017-18205
cve.org/CVERecord?id=CVE-2017-18205
nvd.nist.gov/vuln/detail/CVE-2017-18205
access.redhat.com/security/cve/CVE-2017-18206
cve.org/CVERecord?id=CVE-2017-18206
nvd.nist.gov/vuln/detail/CVE-2017-18206
cve.org/CVERecord?id=CVE-2018-1071
access.redhat.com/security/cve/CVE-2018-1083
cve.org/CVERecord?id=CVE-2018-1083
nvd.nist.gov/vuln/detail/CVE-2018-1083
access.redhat.com/security/cve/CVE-2018-1100
cve.org/CVERecord?id=CVE-2018-1100
nvd.nist.gov/vuln/detail/CVE-2018-1100
access.redhat.com/security/cve/CVE-2018-7549
cve.org/CVERecord?id=CVE-2018-7549
nvd.nist.gov/vuln/detail/CVE-2018-7549
suse.com/support/update/announcement/2018/suse-su-20181072-1
bugzilla.suse.com/1082885
bugzilla.suse.com/1082975
bugzilla.suse.com/1082977
bugzilla.suse.com/1082991
bugzilla.suse.com/1082998
bugzilla.suse.com/1083002
bugzilla.suse.com/1083250
bugzilla.suse.com/1084656
bugzilla.suse.com/1087026
bugzilla.suse.com/896914
suse.com/security/cve/CVE-2014-10070
suse.com/security/cve/CVE-2014-10071
suse.com/security/cve/CVE-2014-10072
suse.com/security/cve/CVE-2016-10714
suse.com/security/cve/CVE-2017-18205
suse.com/security/cve/CVE-2017-18206
suse.com/security/cve/CVE-2018-1071
suse.com/security/cve/CVE-2018-1083
suse.com/security/cve/CVE-2018-7549
suse.com/support/update/announcement/2018/suse-su-20181874-1
bugzilla.suse.com/1089030
suse.com/security/cve/CVE-2018-1100
suse.com/support/update/announcement/2022/suse-su-202214910-1
bugzilla.suse.com/1107294
bugzilla.suse.com/1107296
bugzilla.suse.com/1163882
suse.com/security/cve/CVE-2018-0502
suse.com/security/cve/CVE-2018-13259
suse.com/security/cve/CVE-2019-20044
ubuntu.com/security/CVE-2018-1071
ubuntu.com/security/notices/USN-3608-1
ubuntu.com/security/CVE-2018-1083