CVE Vulnerabilities

CVE-2017-18205

NULL Pointer Dereference

Published: Feb 27, 2018 | Modified: Oct 31, 2018
CVSS 3.x
8.1
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
2 LOW
CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

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.

Weakness

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

Affected Software

Name Vendor Start Version End Version
Zsh Zsh_project * 5.4 (excluding)
Red Hat Enterprise Linux 7 RedHat zsh-0:5.0.2-31.el7 *
Zsh Ubuntu artful *
Zsh Ubuntu trusty *
Zsh Ubuntu xenial *

Potential Mitigations

References