Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2018-0502

zsh: Improper parsing of the shebang line with special chars

Overview

Published
5 Sep 2018
Modified
17 Jun 2026
Critical CVE
0 Registry packages
2 OS packages
5 Linux distributions
Yes Fix available

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
SUSE Linux Enterprise fixes for CVE-2018-0502
ReleasePackageFixed inAdvisory
12.5 zsh 5.0.5-6.12.2 SUSE-SU-2022:0161-1

debian 5 releases · 1 package

fixed 5
zsh
debian fixes for CVE-2018-0502
ReleasePackageFixed 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
echo fixes for CVE-2018-0502
ReleasePackageFixed in
zsh 5.6-1

openSUSE 1 release · 1 package

fixed 1
zsh
openSUSE fixes for CVE-2018-0502
ReleasePackageFixed inAdvisory
Tumbleweed zsh +1 5.8-7.7 openSUSE-SU-2024:11543-1

ubuntu 2 releases · 1 package

fixed 2
zsh
ubuntu fixes for CVE-2018-0502
ReleasePackageFixed in
18.04 zsh 5.4.2-3ubuntu3.1
18.04-ESM zsh 5.4.2-3ubuntu3.1

References

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.