CVE-2018-1100
published 2018-04-11CVE-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…
PriorityP339high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.54%
42.0th percentile
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.
Affected
19 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | zsh | < zsh 5.5-1 (bookworm) | zsh 5.5-1 (bookworm) |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_workstation | — | — |
| redhat | enterprise_linux_workstation | — | — |
| zsh | zsh | <= 5.4.2 | — |
| zsh | zsh | — | — |
| zsh | zsh | >= 0 < 5.5-1 | 5.5-1 |
| zsh | zsh | >= 0 < 5.5-1 | 5.5-1 |
| zsh | zsh | >= 0 < 5.5-1 | 5.5-1 |
| zsh | zsh | >= 0 < 5.5-1 | 5.5-1 |
| zsh | zsh | >= 0 < 5.0.2-3ubuntu6.3 | 5.0.2-3ubuntu6.3 |
| zsh | zsh | >= 0 < 5.1.1-1ubuntu2.3 | 5.1.1-1ubuntu2.3 |
| zsh | zsh | >= 0 < 5.4.2-3ubuntu3.1 | 5.4.2-3ubuntu3.1 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.2HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_ubuntu9.8CRITICAL
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Zsh vulnerabilities
vendor_ubuntu·2018-09-11·CVSS 9.8
CVE-2018-0502 [CRITICAL] Zsh vulnerabilities
Title: Zsh vulnerabilities
Summary: Zsh could be made to execute arbitrary code if it received
a specially crafted script.
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)
Instructions: After a standard system update you need to restart Zsh to make
all the necessary changes.
Red Hat
zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution
vendor_redhat·2018-04-07·CVSS 7.8
CVE-2018-1100 [HIGH] CWE-120 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution
zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution
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.
A buffer overflow flaw was found in the zsh shell check path functionality. A local, unprivileged user can create a specially crafted message file, which, if used to set a custom "you have new mail" message, leads to code execution in the context of the user who receives the message. If the user affected is privileged, this leads to privilege escalation.
Package: zsh (Red Hat Enterprise Linux 5) - Will not fix
Package: zsh (Red Hat Enterprise Linux 8) - Not affected
Debian
CVE-2018-1100: zsh - zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the ...
vendor_debian·2018·CVSS 7.8
CVE-2018-1100 [HIGH] CVE-2018-1100: zsh - zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the ...
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.
Scope: local
bookworm: resolved (fixed in 5.5-1)
bullseye: resolved (fixed in 5.5-1)
forky: resolved (fixed in 5.5-1)
sid: resolved (fixed in 5.5-1)
trixie: resolved (fixed in 5.5-1)
GHSA
GHSA-hwhr-jcvf-mgf3: zsh through version 5
ghsa_unreviewed·2022-05-13
CVE-2018-1100 [HIGH] CWE-120 GHSA-hwhr-jcvf-mgf3: zsh through version 5
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.
OSV
zsh vulnerabilities
osv·2018-09-11·CVSS 9.8
CVE-2018-0502 [CRITICAL] zsh vulnerabilities
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)
OSV
CVE-2018-1100: zsh through version 5
osv·2018-04-11·CVSS 7.8
CVE-2018-1100 [HIGH] CVE-2018-1100: zsh through version 5
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-1100 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution
bugzilla·2018-04-03·CVSS 7.8
CVE-2018-1100 [HIGH] CVE-2018-1100 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution
CVE-2018-1100 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution
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.
Discussion:
Acknowledgments:
Name: Richard Maciel Costa (Red Hat)
---
Created zsh tracking bugs for this issue:
Affects: fedora-all [bug 1563396]
---
*** Bug 1563394 has been marked as a duplicate of this bug. ***
---
Fixed by upstream patch:
https://sourceforge.net/p/zsh/code/ci/31f72205630687c1cef89347863aab355296a27f/
---
This issue has been addressed in the following products:
Red Hat Enterprise Linux 6
Via RHSA-2018:1932 https://access.redhat.com/errata/RHSA-2018:1
Bugzilla
CVE-2018-1100 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution [fedora-all]
bugzilla·2018-04-03·CVSS 7.8
CVE-2018-1100 [HIGH] CVE-2018-1100 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution [fedora-all]
CVE-2018-1100 zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this i
https://access.redhat.com/errata/RHSA-2018:1932https://access.redhat.com/errata/RHSA-2018:3073https://bugzilla.redhat.com/show_bug.cgi?id=1563395https://lists.debian.org/debian-lts-announce/2020/12/msg00000.htmlhttps://security.gentoo.org/glsa/201805-10https://sourceforge.net/p/zsh/code/ci/31f72205630687c1cef89347863aab355296a27f/https://usn.ubuntu.com/3764-1/https://access.redhat.com/errata/RHSA-2018:1932https://access.redhat.com/errata/RHSA-2018:3073https://bugzilla.redhat.com/show_bug.cgi?id=1563395https://lists.debian.org/debian-lts-announce/2020/12/msg00000.htmlhttps://security.gentoo.org/glsa/201805-10https://sourceforge.net/p/zsh/code/ci/31f72205630687c1cef89347863aab355296a27f/https://usn.ubuntu.com/3764-1/
2018-04-11
Published