CVE-2017-18205
publishedzsh: NULL dereference in cd in sh compatibility mode under given circumstances
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-986 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 7 | zshaarch64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshaarch64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| SUSE / openSUSE | SLE-11-SP3 | zshi586 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| Ubuntu | trusty | zsh | Advisory build | 5.0.2-3ubuntu6.1 | USN-3593-1 |
| Amazon Linux | AL2 | zshsrc | Listed in advisory | Not stated | ALAS2-2018-986 |
| Oracle Linux | 7 | zshx86_64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
Show 32 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 7 | zsh-htmlaarch64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Oracle Linux | 7 | zsh-htmlx86_64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshppc64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshppc64le | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshs390x | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshsrc | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshx86_64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfoaarch64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfoppc64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfoppc64le | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfos390x | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfox86_64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlaarch64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlppc64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlppc64le | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmls390x | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlx86_64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| SUSE / openSUSE | SLE-11-SP4 | zshi586 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshppc64 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshs390x | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshx86_64 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshaarch64 | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshppc64le | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshs390x | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshx86_64 | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| Ubuntu | trusty | zsh-beta | Advisory build | 5.0.2-3ubuntu6.1 | USN-3593-1 |
| Ubuntu | trusty | zsh-common | Advisory build | 5.0.2-3ubuntu6.1 | USN-3593-1 |
| Ubuntu | trusty | zsh-static | Advisory build | 5.0.2-3ubuntu6.1 | USN-3593-1 |
| Ubuntu | xenial | zsh | Advisory build | 5.1.1-1ubuntu2.1 | USN-3593-1 |
| Ubuntu | xenial | zsh-common | Advisory build | 5.1.1-1ubuntu2.1 | USN-3593-1 |
| Ubuntu | xenial | zsh-static | Advisory build | 5.1.1-1ubuntu2.1 | USN-3593-1 |
| Amazon Linux | AL2 | zshx86_64 | Listed in advisory | Not stated | ALAS2-2018-986 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
4- RHSA-2018:3073 https://access.redhat.com/errata/RHSA-2018:3073
- GLSA-201805-10 https://security.gentoo.org/glsa/201805-10
- https://sourceforge.net/p/zsh/code/ci/eb783754bdb74377f3cea4ceca9c23a02ea1bf58
- USN-3593-1 https://usn.ubuntu.com/3593-1/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f99e0693ee8fe1acfb54c5a946256655953192377db87d3f26ec6e45a39b81a9
- Ingested
- 23 Sep 2026, 07:42:22 UTC
- Source record
- Official CVE record