ZshCVEs & Vulnerabilities

13 CVEs affecting Zsh products, tracked from the National Vulnerability Database, with CVSS/EPSS scores and exploitation status.

Most Affected Products

zsh 13
CVE-2021-45444HIGH

In zsh before 5.8.1, an attacker can achieve code execution if they control a command output inside the prompt, as demonstrated by a %F argument. This occurs because of recursive PROMPT_SUBST expansion.

14 Feb 2022
7.8
CVSS
CVE-2019-20044HIGH

In Zsh before 5.8, attackers able to execute commands can regain privileges dropped by the --no-PRIVILEGED option. Zsh fails to overwrite the saved uid, so the original privileges can be restored by executing MODULE_PATH=/dir/with/module zmodload with a module that calls setuid().

24 Feb 2020
7.8
CVSS
CVE-2018-13259CRITICAL

An issue was discovered in zsh before 5.6. Shebang lines exceeding 64 characters were truncated, potentially leading to an execve call to a program name that is a substring of the intended one.

5 Sep 2018
9.8
CVSS
CVE-2018-0502CRITICAL

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.

5 Sep 2018
9.8
CVSS
CVE-2018-1100HIGH

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the utils.c:checkmailpath function. A local attacker could exploit this to execute arbitrary code in the context of another user.

11 Apr 2018
7.8
CVSS
CVE-2018-1083HIGH

Zsh before version 5.4.2-test-1 is vulnerable to a buffer overflow in the shell autocomplete functionality. A local unprivileged user can create a specially crafted directory path which leads to code execution in the context of the user who tries to use autocomplete to traverse the before mentioned path. If the user affected is privileged, this leads to privilege escalation.

28 Mar 2018
7.8
CVSS
CVE-2018-1071MEDIUM

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.

9 Mar 2018
5.5
CVSS
CVE-2018-7549HIGH

In params.c in zsh through 5.4.2, there is a crash during a copy of an empty hash table, as demonstrated by typeset -p.

28 Feb 2018
7.5
CVSS
CVE-2018-7548CRITICAL

In subst.c in zsh through 5.4.2, there is a NULL pointer dereference when using ${(PA)...} on an empty array result.

28 Feb 2018
9.8
CVSS
CVE-2017-18206CRITICAL

In utils.c in zsh before 5.4, symlink expansion had a buffer overflow.

28 Feb 2018
9.8
CVSS
CVE-2016-10714CRITICAL

In zsh before 5.3, an off-by-one error resulted in undersized buffers that were intended to support PATH_MAX characters.

28 Feb 2018
9.8
CVSS
CVE-2014-10071CRITICAL

In exec.c in zsh before 5.0.7, there is a buffer overflow for very long fds in the ">& fd" syntax.

28 Feb 2018
9.8
CVSS
CVE-2007-6209MEDIUM

Util/difflog.pl in zsh 4.3.4 allows local users to overwrite arbitrary files via a symlink attack on temporary files.

4 Dec 2007
4.6
CVSS
← PrevPage 1 / 1Next →