CVE-2018-0502 json
An issue was discovered in zsh before 5.6.
published 2018-09-05 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-1324
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
An issue was discovered in zsh before 5.6. The beginning of a #! script file was mishandled, potentially leading to an execve call to a program named on the second line.
Patch / fix
- zsh zsh 5.6
- zsh Debian 14, Debian 13, Debian 12 5.6-1
debian advisories DEBIAN-CVE-2018-0502
- zsh Ubuntu 14.04 LTS 5.0.2-3ubuntu6.3
- zsh Ubuntu 16.04 LTS 5.1.1-1ubuntu2.3
- zsh Ubuntu 18.04 LTS 5.4.2-3ubuntu3.1
ubuntu advisories UBUNTU-CVE-2018-0502
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- zsh SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 4.3.6-67.9.8.1
- zsh SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +10 more 5.0.5-6.12.2
- zsh SLE Module for Basesystem 15 5.6-3.6.1
suse advisories SUSE-SU-2022:14910-1SUSE-SU-2022:0161-1SUSE-SU-2018:2686-1
- zsh openSUSE Tumbleweed 5.8-7.7
opensuse advisories openSUSE-SU-2024:11543-1
- zsh Arch Linux 5.6-1
arch linux advisories AVG-764
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-0502 updated cvss 5.3
zsh: Improper parsing of the shebang line with special chars
-
Red Hat Enterprise Linux 5 zsh Red Hat Enterprise Linux 6 zsh, zsh-html Red Hat Enterprise Linux 7 zsh, zsh-html Red Hat Enterprise Linux 8 zsh, zsh-htmlnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.49% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected products
- n/a zsh before 5.6
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
sourceforge.net
/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d
patch, third-party-advisory
-
bugs.debian.org
/908000
mailing-list, patch, third-party-advisory
-
usn.ubuntu.com
/3764-1/
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201903-02
vendor-advisory, third-party-advisory
-
zsh.org
/mla/zsh-announce/136
mailing-list, vendor-advisory
-
lists.debian.org
/debian-lts-announce/2020/12/msg00000.html
mailing-list
Sources
- CVE List CVE-2018-0502
- NVD CVE-2018-0502
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.