
CVE catalog
CVE-2018-0502
zsh: CVE-2018-0502
- Severity
- High · CVSS 7.3
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.49% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | zsh | sid | 5.9.2-1 | fixed |
| Debian | zsh | forky | 5.9.2-1 | fixed |
| Debian | zsh | trixie | 5.9-8 | fixed |
| Debian | zsh | bookworm | 5.9-4 | fixed |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6 | vulnerable |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6.1 | vulnerable |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6.2 | vulnerable |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6.3 | fixed |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu1 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2.1 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2.2 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2.3 | fixed |
| Ubuntu | zsh | 18.04 | 5.2-5ubuntu1 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu1 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu2 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu3 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu3.1 | fixed |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6 | vulnerable |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6.1 | vulnerable |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6.2 | vulnerable |
| Ubuntu | zsh | 14.04 | 5.0.2-3ubuntu6.3 | fixed |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu1 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2.1 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2.2 | vulnerable |
| Ubuntu | zsh | 16.04 | 5.1.1-1ubuntu2.3 | fixed |
| Ubuntu | zsh | 18.04 | 5.2-5ubuntu1 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu1 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu2 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu3 | vulnerable |
| Ubuntu | zsh | 18.04 | 5.4.2-3ubuntu3.1 | fixed |
| Opensuse | zsh | tumbleweed | 5.8-7.7 | fixed |
| Suse | zsh | hpe helion openstack 8 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | openstack cloud 8 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | openstack cloud 9 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | openstack cloud crowbar 8 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | openstack cloud crowbar 9 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server for sap applications 12 sp3 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server for sap applications 12 sp4 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server 12 sp2-bcl | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server 12 sp3-ltss | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server 12 sp3-bcl | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server 12 sp4-ltss | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server 12 sp5 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise server for sap applications 12 sp5 | 5.0.5-6.12.2 | fixed |
| Suse | zsh | linux enterprise module for basesystem 15 | 5.6-3.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | zsh | source | sid | 5.6-1 | not yet assigned | Not reported | [908000] |
| Debian | zsh | source | forky | 5.6-1 | not yet assigned | Not reported | [908000] |
| Debian | zsh | source | trixie | 5.6-1 | not yet assigned | Not reported | [908000] |
| Debian | zsh | source | bookworm | 5.6-1 | not yet assigned | Not reported | [908000] |
| Ubuntu | zsh | deb | 14.04 | 5.0.2-3ubuntu6.3 | Not reported | UBUNTU-CVE-2018-0502 | Not reported |
| Ubuntu | zsh | deb | 16.04 | 5.1.1-1ubuntu2.3 | Not reported | UBUNTU-CVE-2018-0502 | Not reported |
| Ubuntu | zsh | deb | 18.04 | 5.4.2-3ubuntu3.1 | Not reported | UBUNTU-CVE-2018-0502 | Not reported |
| Ubuntu | zsh | deb | 14.04 | 5.0.2-3ubuntu6.3 | Not reported | USN-3764-1 | Not reported |
| Ubuntu | zsh | deb | 16.04 | 5.1.1-1ubuntu2.3 | Not reported | USN-3764-1 | Not reported |
| Ubuntu | zsh | deb | 18.04 | 5.4.2-3ubuntu3.1 | Not reported | USN-3764-1 | Not reported |
| Opensuse | zsh | rpm | tumbleweed | 5.8-7.7 | Not reported | OPENSUSE-SU-2024:11543-1 | Not reported |
| Suse | zsh | rpm | hpe helion openstack 8 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | openstack cloud 8 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | openstack cloud 9 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | openstack cloud crowbar 8 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | openstack cloud crowbar 9 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server for sap applications 12 sp3 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server for sap applications 12 sp4 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server 12 sp2-bcl | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server 12 sp3-ltss | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server 12 sp3-bcl | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server 12 sp4-ltss | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server 12 sp5 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise server for sap applications 12 sp5 | 5.0.5-6.12.2 | Not reported | SUSE-SU-2022:0161-1 | Not reported |
| Suse | zsh | rpm | linux enterprise module for basesystem 15 | 5.6-3.6.1 | Not reported | SUSE-SU-2018:2686-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [zsh-htmldoc]Unknown
Source package: [zsh]
Details (1)
5.9-12.6· x86_64 · tumbleweedUnknown · Fixed:
5.8-7.7Version impact unknown
dsa · zsh · opensuse · tumbleweed
- [zsh-sh]Unknown
Source package: [zsh]
Details (1)
5.9-12.6· noarch · tumbleweedUnknown · Fixed:
5.8-7.7Version impact unknown
dsa · zsh · opensuse · tumbleweed
- [zsh]Fixed
Source package: [zsh]
Details (1)
5.9-12.6· x86_64 · tumbleweedFixed · Fixed:
5.8-7.7dsa · zsh · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [zsh]Fixed
Source package: [zsh]
Details (2)
5.9-4+b15· amd64 · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
5.9-4+b15· arm64 · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
- [zsh-common]Fixed
Source package: [zsh]
Details (2)
5.9-4· all · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
5.9-4· all · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
- [zsh-dev]Fixed
Source package: [zsh]
Details (2)
5.9-4+b15· amd64 · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
5.9-4+b15· arm64 · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
- [zsh-doc]Fixed
Source package: [zsh]
Details (2)
5.9-4· all · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
5.9-4· all · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
- [zsh-static]Fixed
Source package: [zsh]
Details (2)
5.9-4+b15· amd64 · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
5.9-4+b15· arm64 · bookwormFixed · Fixed:
5.6-1dsa · zsh · debian · bookworm; dsa · zsh · debian · 12
[Debian 13 (Trixie)]
- [zsh]Fixed
Source package: [zsh]
Details (2)
5.9-8+b23· amd64 · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
5.9-8+b23· arm64 · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
- [zsh-common]Fixed
Source package: [zsh]
Details (2)
5.9-8· all · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
5.9-8· all · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
- [zsh-dev]Fixed
Source package: [zsh]
Details (2)
5.9-8+b23· amd64 · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
5.9-8+b23· arm64 · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
- [zsh-doc]Fixed
Source package: [zsh]
Details (2)
5.9-8· all · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
5.9-8· all · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
- [zsh-static]Fixed
Source package: [zsh]
Details (2)
5.9-8+b23· amd64 · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
5.9-8+b23· arm64 · trixieFixed · Fixed:
5.6-1dsa · zsh · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_2686-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-0502]
- [https://osv.dev/vulnerability/SUSE-SU-2018:2686-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:0161-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-0502]
- [https://osv.dev/vulnerability/USN-3764-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11543-1]
- [https://security-tracker.debian.org/tracker/CVE-2018-0502]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]