VDB

CVE-2018-0502

CVE-2018-0502 PUBLISHED

Reported by debian · Published September 5, 2018

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
zshAmazon Linux5.5.1-2.amzn2.0.1
zshzsh5.6
zshUbuntu:14.04:LTS5.0.2-3ubuntu6.3
zshUbuntu:18.04:LTS5.4.2-3ubuntu3.1

Affected products

VendorProductVersions
n/azsh before 5.6zsh before 5.6
n/azsh before 5.65.6

Timeline

  • Sep 5, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 8, 2025 CVE Updated
  • Mar 6, 2026 Distribution Patch
  • Mar 6, 2026 Security Advisory (3 in total, the first dated here)
  • Sep 26, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2018-0502
vulnetix vdb fixes CVE-2018-0502

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-0502/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›