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.
CVSS
7.8
HIGH
Published
Feb 14, 2022
Vendor coverage
Track published CVEs, severity trends, and remediation context for zsh products.
Search results
Showing 1-13 of 13 vulnerabilities.
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.
CVSS
7.8
HIGH
Published
Feb 14, 2022
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().
CVSS
7.8
HIGH
Published
Feb 24, 2020
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.
CVSS
9.8
CRITICAL
Published
Sep 5, 2018
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.
CVSS
9.8
CRITICAL
Published
Sep 5, 2018
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.
CVSS
7.8
HIGH
Published
Apr 11, 2018
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.
CVSS
7.8
HIGH
Published
Mar 28, 2018
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.
CVSS
5.5
MEDIUM
Published
Mar 9, 2018
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.
CVSS
7.5
HIGH
Published
Feb 27, 2018
In subst.c in zsh through 5.4.2, there is a NULL pointer dereference when using ${(PA)...} on an empty array result.
CVSS
9.8
CRITICAL
Published
Feb 27, 2018
In utils.c in zsh before 5.4, symlink expansion had a buffer overflow.
CVSS
9.8
CRITICAL
Published
Feb 27, 2018
In zsh before 5.3, an off-by-one error resulted in undersized buffers that were intended to support PATH_MAX characters.
CVSS
9.8
CRITICAL
Published
Feb 27, 2018
In exec.c in zsh before 5.0.7, there is a buffer overflow for very long fds in the ">& fd" syntax.
CVSS
9.8
CRITICAL
Published
Feb 27, 2018
Util/difflog.pl in zsh 4.3.4 allows local users to overwrite arbitrary files via a symlink attack on temporary files.
CVSS
4.6
UNKNOWN
Published
Dec 4, 2007