Vulnerability in Apple macOS
CVE-2021-45444
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.020, 80.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Apple macOS
- Apple Mac OS X — versions 10.15.7
- Zsh
- Debian Linux — versions 9.0, 10.0, 11.0
- Fedoraproject Fedora — versions 34, 35
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- zsh.sourceforge.io/releases.html (Third Party Advisory, Release Notes)
- vuln.ryotak.me/advisories/63 (Third Party Advisory)
- FEDORA-2022-adf0c6d196 (vendor-advisory)
- DSA-5078 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20220218 [SECURITY] [DLA 2926-1] zsh security update (mailing-list, Mailing List, Third Party Advisory)
- FEDORA-2022-0a06987c3c (vendor-advisory)
- support.apple.com/kb/HT213257 (Third Party Advisory)
- support.apple.com/kb/HT213256 (Third Party Advisory)
- support.apple.com/kb/HT213255 (Third Party Advisory)
- 20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina (mailing-list, Mailing List, Third Party Advisory)