CVE-2021-45444
High
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.
SeverityHigh
CVSS7.8
Exploit probability—
Product
Zsh
PublishedFeb 14, 2022
First seenFeb 14, 2022
How to fix
Update
- zsh zsh5.8.1 or later
- apple mac_os_x10.15.7 or later
- apple macos11.6.6, 12.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| zsh zsh | v < 5.8.1 | 5.8.1 |
| fedoraproject fedora | 34, 35 | — |
| debian debian_linux | 9.0, 10.0, 11.0 | — |
| apple mac_os_x | 10.15 ≤ v < 10.15.7, 10.15.7 | 10.15.7 |
| apple macos | 11.0 ≤ v < 11.6.6, 12.0.0 ≤ v < 12.4 | 11.6.6, 12.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.