CVE-2021-45444
7.8high
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 arg…
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 1.98% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| zsh zsh | before 5.8.1 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| apple mac_os_x | from 10.15 before 10.15.7, 10.15.7 | NVD |
| apple macos | from 11.0 before 11.6.6, from 12.0.0 before 12.4 | NVD |
All scores
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 5.1medium CVSS:2.0 | AV:N/AC:H/Au:N/C:P/I:P/A:P |
What each source says
CVE List
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.
NVD (es)
En zsh versiones anteriores a 5.8.1, un atacante puede lograr una ejecución de código si controla la salida de un comando dentro del prompt, como lo demuestra un argumento %F. Esto ocurre debido a la expansión recursiva PROMPT_SUBST
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45444 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-45444 changed 2026-06-17 | Public domain |