CVE-2018-0502
publishedzsh: Improper parsing of the shebang line with special chars
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | zsh before 5.6zsh before 5.6 | Affected | Not stated | debian |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-1089 | Fixed | Not stated | Amazon Linux assessment |
| Debian | stretch | zsh | Advisory build | 5.3.1-4+deb9u1 | DLA-2470-1 |
| SUSE / openSUSE | SLE-11-SP3 | zshi586 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| Ubuntu | bionic | zsh | Advisory build | 5.4.2-3ubuntu3.1 | USN-3764-1 |
| Amazon Linux | AL2 | zshi686 | Listed in advisory | Not stated | ALAS2-2018-1089 |
| SUSE / openSUSE | SLE-11-SP4 | zshi586 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshppc64 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
Show 39 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-11-SP4 | zshs390x | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshx86_64 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-12-SP2 | zshx86_64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshaarch64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshppc64le | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshs390x | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshx86_64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshaarch64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshppc64le | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshs390x | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshx86_64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshaarch64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshppc64le | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshs390x | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshx86_64 | Advisory build | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
| SUSE / openSUSE | SLE-15 | zshaarch64 | Advisory build | 5.6-3.6.1 | SUSE-SU-2018:2686-1 |
| SUSE / openSUSE | SLE-15 | zshppc64le | Advisory build | 5.6-3.6.1 | SUSE-SU-2018:2686-1 |
| SUSE / openSUSE | SLE-15 | zshs390x | Advisory build | 5.6-3.6.1 | SUSE-SU-2018:2686-1 |
| SUSE / openSUSE | SLE-15 | zshx86_64 | Advisory build | 5.6-3.6.1 | SUSE-SU-2018:2686-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshaarch64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshppc64le | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshs390x | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshx86_64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocaarch64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocppc64le | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocs390x | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocx86_64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| Ubuntu | bionic | zsh-common | Advisory build | 5.4.2-3ubuntu3.1 | USN-3764-1 |
| Ubuntu | bionic | zsh-static | Advisory build | 5.4.2-3ubuntu3.1 | USN-3764-1 |
| Ubuntu | trusty | zsh | Advisory build | 5.0.2-3ubuntu6.3 | USN-3764-1 |
| Ubuntu | trusty | zsh-beta | Advisory build | 5.0.2-3ubuntu6.3 | USN-3764-1 |
| Ubuntu | trusty | zsh-common | Advisory build | 5.0.2-3ubuntu6.3 | USN-3764-1 |
| Ubuntu | trusty | zsh-static | Advisory build | 5.0.2-3ubuntu6.3 | USN-3764-1 |
| Ubuntu | xenial | zsh | Advisory build | 5.1.1-1ubuntu2.3 | USN-3764-1 |
| Ubuntu | xenial | zsh-common | Advisory build | 5.1.1-1ubuntu2.3 | USN-3764-1 |
| Ubuntu | xenial | zsh-static | Advisory build | 5.1.1-1ubuntu2.3 | USN-3764-1 |
| Amazon Linux | AL2 | zshnoarch | Listed in advisory | Not stated | ALAS2-2018-1089 |
| Amazon Linux | AL2 | zshsrc | Listed in advisory | Not stated | ALAS2-2018-1089 |
| Amazon Linux | AL2 | zshx86_64 | Listed in advisory | Not stated | ALAS2-2018-1089 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | zsh before 5.6 | zsh before 5.6 (affected) | debian · cna |
Weaknesses
1- improper parsing
References
6- https://bugs.debian.org/908000
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html
- GLSA-201903-02 https://security.gentoo.org/glsa/201903-02
- https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d
- USN-3764-1 https://usn.ubuntu.com/3764-1/
- https://www.zsh.org/mla/zsh-announce/136
Provider assertions
2debian · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3e5717f711ca9b001a560bb645d304a743f0b7b8adf8270f473f39851b7120a7
- Ingested
- 23 Sep 2026, 07:43:13 UTC
- Source record
- Official CVE record