High severity7.8NVD Advisory· Published Feb 14, 2022· Updated Jun 17, 2026
CVE-2021-45444
CVE-2021-45444
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
61cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*+ 13 more
- cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*range: >=10.15,<10.15.7
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2020-001:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2020-005:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2020-007:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2020:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2021-001:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2021-002:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2021-003:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2021-006:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2021-007:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2021-008:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2022-001:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2022-002:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:10.15.7:security_update_2022-003:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- osv-coords38 versionspkg:rpm/almalinux/zshpkg:rpm/almalinux/zsh-htmlpkg:rpm/opensuse/zsh&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/zsh&distro=openSUSE%20Tumbleweedpkg:rpm/suse/zsh&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/zsh&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/zsh&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/zsh&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/zsh&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/zsh&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/zsh&distro=SUSE%20Manager%20Server%204.1pkg:rpm/suse/zsh&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/zsh&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/zsh&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/zsh&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 5.5.1-9.el8+ 37 more
- (no CPE)range: < 5.5.1-9.el8
- (no CPE)range: < 5.5.1-9.el8
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.8.1-1.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-3.11.1
- (no CPE)range: < 5.6-3.11.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-3.11.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.6-3.11.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.6-7.5.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
- (no CPE)range: < 5.0.5-6.19.1
Patches
Vulnerability mechanics
References
12- seclists.org/fulldisclosure/2022/May/33nvdMailing ListThird Party Advisory
- seclists.org/fulldisclosure/2022/May/35nvdMailing ListThird Party Advisory
- seclists.org/fulldisclosure/2022/May/38nvdMailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/02/msg00020.htmlnvdMailing ListThird Party Advisory
- support.apple.com/kb/HT213255nvdThird Party Advisory
- support.apple.com/kb/HT213256nvdThird Party Advisory
- support.apple.com/kb/HT213257nvdThird Party Advisory
- vuln.ryotak.me/advisories/63nvdThird Party Advisory
- www.debian.org/security/2022/dsa-5078nvdThird Party Advisory
- zsh.sourceforge.io/releases.htmlnvdRelease NotesThird Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/nvd
News mentions
0No linked articles in our index yet.