zsh: Improper parsing of the shebang line with special chars
Published Sep 5, 2018
9.8
CRITICALCVSS 3.0
EPSS 2.49%
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.
Affected products
- Vendor n/a Product Zsh Before 5.6 Defaultn/a
- Version zsh before 5.6StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Zsh Before 5.6 | n/a |
|
Configuration 1
- 14.04
- 16.04
- 18.04
No data.
Red Hat Enterprise Linux 5
zsh
Not affected
Red Hat Enterprise Linux 6
zsh
Not affected
Red Hat Enterprise Linux 7
zsh
Not affected
Red Hat Enterprise Linux 8
zsh
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | zsh | Not affected | n/a |
| Red Hat Enterprise Linux 6 | zsh | Not affected | n/a |
| Red Hat Enterprise Linux 7 | zsh | Not affected | n/a |
| Red Hat Enterprise Linux 8 | zsh | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security determined that this flaw was not a security vulnerability. See the Bugzilla link for more details.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (19 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.49% (0.02487) | 84.05th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.49% (0.02487) | 82.49th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.83% (0.00828) | 72.32th | v4 (v2025.03.14) |
| Mar 29, 2025 | 2.69% (0.02688) | 76.39th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.65% (0.00652) | 79.68th | v3 (v2023.03.01) |
| Jun 20, 2024 | 0.65% (0.00652) | 79.55th | v3 (v2023.03.01) |
| Apr 24, 2024 | 0.92% (0.00923) | 82.73th | v3 (v2023.03.01) |
| Jan 27, 2024 | 1.09% (0.01095) | 82.86th | v3 (v2023.03.01) |
| Aug 30, 2023 | 0.97% (0.00966) | 81.39th | v3 (v2023.03.01) |
| May 8, 2023 | 0.80% (0.00799) | 79.11th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.51% (0.00508) | 72.91th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.45% (0.01454) | 32.67th | v1 |
| Jan 6, 2022 | 1.45% (0.01454) | 31.96th | v1 |
| Sep 1, 2021 | 1.45% (0.01454) | 71.88th | v1 |
| Apr 14, 2021 | 1.45% (0.01454) | 0.00th | v1 |
References (10)
- https://access.redhat.com/security/cve/CVE-2018-0502 Vendor Advisory
- https://bugs.debian.org/908000 x_refsource_MISCMailing ListPatchThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1626187 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-0502
- https://security.gentoo.org/glsa/201903-02 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d x_refsource_MISCPatchThird Party Advisory
- https://usn.ubuntu.com/3764-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-0502
- https://www.zsh.org/mla/zsh-announce/136 x_refsource_MISCMailing ListVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-0502 | Vendor Advisory | |
| https://bugs.debian.org/908000 | x_refsource_MISCMailing ListPatchThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1626187 | Issue Tracking | |
| https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-0502 | ||
| https://security.gentoo.org/glsa/201903-02 | vendor-advisoryx_refsource_GENTOOThird Party Advisory | |
| https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d | x_refsource_MISCPatchThird Party Advisory | |
| https://usn.ubuntu.com/3764-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-0502 | ||
| https://www.zsh.org/mla/zsh-announce/136 | x_refsource_MISCMailing ListVendor Advisory |
Change history (0)
No recorded changes yet.