zsh: NULL dereference in cd in sh compatibility mode under given circumstances
Published Feb 27, 2018
8.1
HIGHCVSS 3.0
EPSS 2.05%
Description
In builtin.c in zsh before 5.4, when sh compatibility mode is used, there is a NULL pointer dereference during processing of the cd command with no argument if HOME is not set.
Affected products
No data.
- < 5.4
No data.
Red Hat Enterprise Linux 7
zsh-0:5.0.2-31.el7
Fixed · RHSA-2018:3073
Red Hat Enterprise Linux 5
zsh
Will not fix
Red Hat Enterprise Linux 6
zsh
Will not fix
Red Hat Enterprise Linux 8
zsh
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | zsh-0:5.0.2-31.el7 | Fixed | RHSA-2018:3073 |
| Red Hat Enterprise Linux 5 | zsh | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | zsh | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | zsh | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:H/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:H/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:M/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 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (13 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.05% (0.02052) | 80.57th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.12% (0.02124) | 79.44th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.36% (0.00362) | 72.55th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.36% (0.00362) | 71.51th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.36% (0.00362) | 67.93th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.04% (0.01040) | 28.32th | v1 |
| Jan 6, 2022 | 1.04% (0.01040) | 27.69th | v1 |
| Sep 1, 2021 | 1.04% (0.01040) | 64.49th | v1 |
| Apr 14, 2021 | 1.04% (0.01040) | 0.00th | v1 |
References (8)
- https://access.redhat.com/errata/RHSA-2018:3073 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2017-18205 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1549862 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2017-18205
- https://security.gentoo.org/glsa/201805-10 vendor-advisoryx_refsource_GENTOO
- https://sourceforge.net/p/zsh/code/ci/eb783754bdb74377f3cea4ceca9c23a02ea1bf58 x_refsource_MISCPatchThird Party Advisory
- https://usn.ubuntu.com/3593-1/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2017-18205
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2018:3073 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2017-18205 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1549862 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2017-18205 | ||
| https://security.gentoo.org/glsa/201805-10 | vendor-advisoryx_refsource_GENTOO | |
| https://sourceforge.net/p/zsh/code/ci/eb783754bdb74377f3cea4ceca9c23a02ea1bf58 | x_refsource_MISCPatchThird Party Advisory | |
| https://usn.ubuntu.com/3593-1/ | vendor-advisoryx_refsource_UBUNTU | |
| https://www.cve.org/CVERecord?id=CVE-2017-18205 |
Change history (0)
No recorded changes yet.