# 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 arg…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2022-02-13T05:32:21.000Z
- Modified: 2026-06-17T04:13:22.823Z
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- zsh zsh: before 5.8.1
- fedoraproject fedora: 34; 35
- debian debian_linux: 9.0; 10.0; 11.0
- apple mac_os_x: from 10.15 before 10.15.7; 10.15.7
- apple macos: from 11.0 before 11.6.6; from 12.0.0 before 12.4

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 5.1 Medium `AV:N/AC:H/Au:N/C:P/I:P/A:P`

## References

- <https://zsh.sourceforge.io/releases.html> (release-notes, third-party-advisory)
- <https://vuln.ryotak.me/advisories/63> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/> (vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5078> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/02/msg00020.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/> (vendor-advisory)
- <https://support.apple.com/kb/HT213257> (third-party-advisory)
- <https://support.apple.com/kb/HT213256> (third-party-advisory)
- <https://support.apple.com/kb/HT213255> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/May/33> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/May/35> (mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/May/38> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-45444](https://www.cve.org/CVERecord?id=CVE-2021-45444), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-45444](https://nvd.nist.gov/vuln/detail/CVE-2021-45444), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45444 · Whole record: https://cve.day/CVE-2021-45444.json · Rebuilt by cve.day 2026-11-25T22:58:06.958Z
