CVE-2018-0502
zsh: Improper parsing of the shebang line with special chars
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-20
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 10 fixes
SUSE Linux Enterprise 1 release · 1 package
fixed 1
zsh
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | zsh | 5.0.5-6.12.2 | SUSE-SU-2022:0161-1 |
debian 5 releases · 1 package
fixed 5
zsh
| Release | Package | Fixed in |
|---|---|---|
| 11 | zsh | 5.6-1 |
| 12 | zsh | 5.6-1 |
| 13 | zsh | 5.6-1 |
| 14 | zsh | 5.6-1 |
| 9 | zsh | 5.3.1-4+deb9u1 |
echo 1 release · 1 package
fixed 1
zsh
| Release | Package | Fixed in |
|---|---|---|
| zsh | 5.6-1 |
openSUSE 1 release · 1 package
fixed 1
zsh
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | zsh +1 | 5.8-7.7 | openSUSE-SU-2024:11543-1 |
ubuntu 2 releases · 1 package
fixed 2
zsh
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | zsh | 5.4.2-3ubuntu3.1 |
| 18.04-ESM | zsh | 5.4.2-3ubuntu3.1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-0502
- bugs.debian.org https://bugs.debian.org/908000
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-0502
- security.gentoo.org https://security.gentoo.org/glsa/201903-02
- sourceforge.net https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d
- ubuntu.com https://ubuntu.com/security/notices/USN-3764-1
- usn.ubuntu.com https://usn.ubuntu.com/3764-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2018-0502
- www.zsh.org https://www.zsh.org/mla/zsh-announce/136
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.