{"id":"UBUNTU-CVE-2017-18205","details":"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.","modified":"2026-04-22T12:13:59.439706Z","published":"2018-02-27T00:00:00Z","related":["USN-3593-1"],"upstream":["CVE-2017-18205"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-18205"},{"type":"REPORT","url":"https://sourceforge.net/p/zsh/code/ci/eb783754bdb74377f3cea4ceca9c23a02ea1bf58"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3593-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-18205"}],"affected":[{"package":{"name":"zsh","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/zsh@5.0.2-3ubuntu6.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.2-3ubuntu6.1"}]}],"versions":["5.0.2-3ubuntu6"],"ecosystem_specific":{"binaries":[{"binary_version":"5.0.2-3ubuntu6.1","binary_name":"zsh"},{"binary_version":"5.0.2-3ubuntu6.1","binary_name":"zsh-beta"},{"binary_version":"5.0.2-3ubuntu6.1","binary_name":"zsh-common"},{"binary_version":"5.0.2-3ubuntu6.1","binary_name":"zsh-static"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18205.json"}},{"package":{"name":"zsh","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/zsh@5.1.1-1ubuntu2.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.1-1ubuntu2.1"}]}],"versions":["5.1.1-1ubuntu1","5.1.1-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"5.1.1-1ubuntu2.1","binary_name":"zsh"},{"binary_version":"5.1.1-1ubuntu2.1","binary_name":"zsh-common"},{"binary_version":"5.1.1-1ubuntu2.1","binary_name":"zsh-static"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18205.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}