Every CVE Search/ Get API key

CVE-2018-1100

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the utils.c...

7.8 HighFix available

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.

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
High
Integrity
High
Availability
High

Exploit likelihood

0.53%Down 1.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.8

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.

Record
CVE-2018-1100
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.2 HighAV:L/AC:L/Au:N/C:C/I:C/A:C
Weakness
CWE-120, 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 utils.c:checkmailpath function. A local attacker could exploit this to execute arbitrary code in the context of another user.

Record
CVE-2018-1100
Weakness
CWE-120
Updated
2026-11-02
EUVDEUVD-2018-11748 No score

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.

Record
EUVD-2018-11748
Updated
2026-11-03
GitHub AdvisoriesGHSA-hwhr-jcvf-mgf3 7.8

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the utils.c...

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.

Record
GHSA-hwhr-jcvf-mgf3
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120, CWE-787
Updated
2026-11-02
OSV 7.8

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.

Record
CVE-2018-1100
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-1100 7.8

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.

Record
DEBIAN-CVE-2018-1100
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVRHSA-2018:1932 7.5

Red Hat Security Advisory: zsh security update

Record
RHSA-2018:1932
CVSS 3.0
7.5 HighCVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/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 HighCVSS: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-1100 7.8

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.

Record
UBUNTU-CVE-2018-1100
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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:1037-1 No score

Security update for zsh

This update for zsh fixes the following issues:

  • CVE-2018-1100: Fixed a buffer overflow in utils.c:checkmailpath() that could lead to local arbitrary code execution ( bsc#1089030)
Record
SUSE-SU-2018:1037-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:0733-1 No score

Security update for zsh

This update for zsh fixes the following issues:

  • CVE-2021-45444: Fixed a vulnerability where arbitrary shell commands could be executed related to prompt expansion (bsc#1196435).
  • CVE-2019-20044: Fixed a vulnerability where shell privileges would not be properly dropped when unsetting the PRIVILEGED option (bsc#1163882).
  • CVE-2018-1100: Fixed a potential code execution via a stack-based buffer overflow in utils.c:checkmailpath() (bsc#1089030).
Record
SUSE-SU-2022:0733-1
Updated
2026-11-02
OSVUSN-3764-1 No score

zsh vulnerabilities

It was discovered that Zsh incorrectly handled certain scripts. An attacker could possibly use this issue to execute arbitrary code. (CVE-2018-0502, CVE-2018-13259)

Richard Maciel Costa discovered that Zsh incorrectly handled certain scripts. An attacker could possibly use this issue to execute arbitrary code. (CVE-2018-1100)

Record
USN-3764-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
zsh
Debian:12
before 5.5-1
5.5-1
zsh
Debian:13
before 5.5-1
5.5-1
zsh
Debian:14
before 5.5-1
5.5-1
zsh
Debian:9
before 5.3.1-4+deb9u1, plus listed versions
5.3.1-4
5.3.1-4+deb9u1
zsh-debuginfo
Red Hat:enterprise_linux:6::client
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh-html
Red Hat:enterprise_linux:6::client
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh
Red Hat:enterprise_linux:6::client
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh-html
Red Hat:enterprise_linux:6::computenode
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh
Red Hat:enterprise_linux:6::computenode
before 0:4.3.11-8.el6
0:4.3.11-8.el6
Show 38 moreShow less
Affected packages
PackageAffectedFixed
zsh-debuginfo
Red Hat:enterprise_linux:6::server
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh-html
Red Hat:enterprise_linux:6::server
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh
Red Hat:enterprise_linux:6::server
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh-html
Red Hat:enterprise_linux:6::workstation
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh
Red Hat:enterprise_linux:6::workstation
before 0:4.3.11-8.el6
0:4.3.11-8.el6
zsh
Red Hat:enterprise_linux:7::client
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-debuginfo
Red Hat:enterprise_linux:7::client
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-html
Red Hat:enterprise_linux:7::client
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh
Red Hat:enterprise_linux:7::computenode
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-debuginfo
Red Hat:enterprise_linux:7::computenode
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-html
Red Hat:enterprise_linux:7::computenode
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh
Red Hat:enterprise_linux:7::server
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-debuginfo
Red Hat:enterprise_linux:7::server
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-html
Red Hat:enterprise_linux:7::server
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh
Red Hat:enterprise_linux:7::workstation
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-debuginfo
Red Hat:enterprise_linux:7::workstation
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh-html
Red Hat:enterprise_linux:7::workstation
before 0:5.0.2-31.el7
0:5.0.2-31.el7
zsh
SUSE:Linux Enterprise Server 11 SP4
before 4.3.6-67.9.3.1
4.3.6-67.9.3.1
zsh
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 4.3.6-67.9.3.1
4.3.6-67.9.3.1
zsh
SUSE:Linux Enterprise Module for Basesystem 15
before 5.5-3.3.15
5.5-3.3.15
zsh
SUSE:HPE Helion OpenStack 8
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:OpenStack Cloud 8
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:OpenStack Cloud 9
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:OpenStack Cloud Crowbar 8
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:OpenStack Cloud Crowbar 9
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server 12 SP2-BCL
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server 12 SP3-LTSS
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server 12 SP3-BCL
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server 12 SP4-LTSS
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server 12 SP5
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 5.0.5-6.19.1
5.0.5-6.19.1
zsh
Ubuntu:14.04:LTS
before 5.0.2-3ubuntu6.3, plus listed versions
5.0.2-3ubuntu65.0.2-3ubuntu6.15.0.2-3ubuntu6.2
5.0.2-3ubuntu6.3
zsh
Ubuntu:16.04:LTS
before 5.1.1-1ubuntu2.3, plus listed versions
5.1.1-1ubuntu15.1.1-1ubuntu25.1.1-1ubuntu2.15.1.1-1ubuntu2.2
5.1.1-1ubuntu2.3
zsh
Ubuntu:18.04:LTS
before 5.4.2-3ubuntu3.1, plus listed versions
5.2-5ubuntu15.4.2-3ubuntu15.4.2-3ubuntu25.4.2-3ubuntu3
5.4.2-3ubuntu3.1
zsh
openSUSE:Tumbleweed
before 5.8-7.7
5.8-7.7

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-1100 is a high vulnerability (CVSS 7.8) in Zsh, published April 11, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.53%, the 45th percentile. Fixed in zsh 5.5-1.

References

Show 60 moreShow less
MoveEnter Open