CVEvulnerability
CVE-2021-45444
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-02-14
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS 2.0 ([email protected])
- 5.1 MEDIUM — AV:N/AC:H/Au:N/C:P/I:P/A:P
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 configurations
• zsh zsh (< 5.8.1)
• fedoraproject fedora 34
• fedoraproject fedora 35
• debian debian linux 9.0
• debian debian linux 10.0
• debian debian linux 11.0
• apple mac os x (>= 10.15 < 10.15.7)
• apple mac os x 10.15.7
• apple macos (>= 11.0 < 11.6.6)
• apple macos (>= 12.0.0 < 12.4)
References
- 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
- 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/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/ lists.fedoraproject.org
- https://support.apple.com/kb/HT213255 Third Party Advisory
- https://support.apple.com/kb/HT213256 Third Party Advisory
- https://support.apple.com/kb/HT213257 Third Party Advisory
- https://vuln.ryotak.me/advisories/63 Third Party Advisory
- https://www.debian.org/security/2022/dsa-5078 Third Party Advisory
- https://zsh.sourceforge.io/releases.html Release Notes, 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
- 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/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/ lists.fedoraproject.org
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/ lists.fedoraproject.org
- https://support.apple.com/kb/HT213255 Third Party Advisory
- https://support.apple.com/kb/HT213256 Third Party Advisory
- https://support.apple.com/kb/HT213257 Third Party Advisory
- https://vuln.ryotak.me/advisories/63 Third Party Advisory
- https://www.debian.org/security/2022/dsa-5078 Third Party Advisory
- https://zsh.sourceforge.io/releases.html Release Notes, Third Party Advisory