Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1757 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-035 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | zsh | Advisory build | 5.5.1-9.el8 | ALSA-2022:2120 |
| Alpine Linux | edge | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Debian | bullseye | zsh | Advisory build | 5.8-6+deb11u1 | DSA-5078-1 |
| Oracle Linux | 8 | zshaarch64 | Advisory build | 0:5.5.1-9.el8 | ELSA-2022-2120 |
| Red Hat Enterprise Linux | RHEL-8 | zshaarch64 | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP2 | zshx86_64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| Ubuntu | bionic | zsh | Advisory build | 5.4.2-3ubuntu3.2 | USN-5325-1 |
| Amazon Linux | AL2 | zshaarch64 | Listed in advisory | Not stated | ALAS2-2022-1757 |
| AlmaLinux | 8 | zsh-html | Advisory build | 5.5.1-9.el8 | ALSA-2022:2120 |
| Alpine Linux | v3.12 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.13 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.14 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.15 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.16 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.17 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.18 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.19 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.20 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.21 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.22 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.23 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Alpine Linux | v3.24 | zsh | Fixed | 5.8.1-r0 | Package fix record |
| Debian | buster | zsh | Advisory build | 5.7.1-1+deb10u1 | DSA-5078-1 |
| Debian | stretch | zsh | Advisory build | 5.3.1-4+deb9u5 | DLA-2926-1 |
| Oracle Linux | 8 | zshx86_64 | Advisory build | 0:5.5.1-9.el8 | ELSA-2022-2120 |
| Oracle Linux | 8 | zsh-htmlaarch64 | Advisory build | 0:5.5.1-9.el8 | ELSA-2022-2120 |
| Oracle Linux | 8 | zsh-htmlx86_64 | Advisory build | 0:5.5.1-9.el8 | ELSA-2022-2120 |
| Red Hat Enterprise Linux | RHEL-8 | zshppc64le | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zshs390x | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zshsrc | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zshx86_64 | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debuginfoaarch64 | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debuginfoppc64le | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debuginfos390x | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debuginfox86_64 | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debugsourceaarch64 | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debugsourceppc64le | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debugsources390x | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-debugsourcex86_64 | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| Red Hat Enterprise Linux | RHEL-8 | zsh-htmlnoarch | Advisory build | 5.5.1-9.el8 | RHSA-2022:2120 |
| SUSE / openSUSE | SLE-12-SP3 | zshaarch64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshppc64le | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshs390x | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshx86_64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshaarch64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshppc64le | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshs390x | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP4 | zshx86_64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshaarch64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshppc64le | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshs390x | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-12-SP5 | zshx86_64 | Advisory build | 5.0.5-6.19.1 | SUSE-SU-2022:0733-1 |
| SUSE / openSUSE | SLE-15 | zshaarch64 | Advisory build | 5.6-3.11.1 | SUSE-SU-2022:0732-1 |
| SUSE / openSUSE | SLE-15 | zshppc64le | Advisory build | 5.6-3.11.1 | SUSE-SU-2022:0732-1 |
| SUSE / openSUSE | SLE-15 | zshs390x | Advisory build | 5.6-3.11.1 | SUSE-SU-2022:0732-1 |
| SUSE / openSUSE | SLE-15 | zshx86_64 | Advisory build | 5.6-3.11.1 | SUSE-SU-2022:0732-1 |
| SUSE / openSUSE | SLE-15-SP1 | zshaarch64 | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP1 | zshppc64le | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP1 | zshs390x | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP1 | zshx86_64 | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP2 | zshaarch64 | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP2 | zshppc64le | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP2 | zshs390x | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP2 | zshx86_64 | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP3 | zshaarch64 | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP3 | zshppc64le | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP3 | zshs390x | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | SLE-15-SP3 | zshx86_64 | Advisory build | 5.6-7.5.1 | SUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zshaarch64 | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zshppc64le | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zshs390x | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zshx86_64 | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zsh-htmldocaarch64 | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zsh-htmldocppc64le | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zsh-htmldocs390x | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | zsh-htmldocx86_64 | Advisory build | 5.6-7.5.1 | OPENSUSE-SU-2022:0735-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshaarch64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshppc64le | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshs390x | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshx86_64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocaarch64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocppc64le | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocs390x | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocx86_64 | Advisory build | 5.8.1-1.1 | OPENSUSE-SU-2024:11959-1 |
| Ubuntu | bionic | zsh-common | Advisory build | 5.4.2-3ubuntu3.2 | USN-5325-1 |
| Ubuntu | bionic | zsh-static | Advisory build | 5.4.2-3ubuntu3.2 | USN-5325-1 |
| Ubuntu | focal | zsh | Advisory build | 5.8-3ubuntu1.1 | USN-5325-1 |
| Ubuntu | focal | zsh-common | Advisory build | 5.8-3ubuntu1.1 | USN-5325-1 |
| Ubuntu | focal | zsh-static | Advisory build | 5.8-3ubuntu1.1 | USN-5325-1 |
| Ubuntu | xenial | zsh | Advisory build | 5.1.1-1ubuntu2.3+esm1 | USN-5325-1 |
| Ubuntu | xenial | zsh-common | Advisory build | 5.1.1-1ubuntu2.3+esm1 | USN-5325-1 |
| Ubuntu | xenial | zsh-static | Advisory build | 5.1.1-1ubuntu2.3+esm1 | USN-5325-1 |
| Amazon Linux | AL2 | zshi686 | Listed in advisory | Not stated | ALAS2-2022-1757 |
| Amazon Linux | AL2 | zshnoarch | Listed in advisory | Not stated | ALAS2-2022-1757 |
| Amazon Linux | AL2 | zshsrc | Listed in advisory | Not stated | ALAS2-2022-1757 |
| Amazon Linux | AL2 | zshx86_64 | Listed in advisory | Not stated | ALAS2-2022-1757 |
| Amazon Linux | AL2023 | zshaarch64 | Listed in advisory | Not stated | ALAS2023-2023-035 |
| Amazon Linux | AL2023 | zshnoarch | Listed in advisory | Not stated | ALAS2023-2023-035 |
| Amazon Linux | AL2023 | zshsrc | Listed in advisory | Not stated | ALAS2023-2023-035 |
| Amazon Linux | AL2023 | zshx86_64 | Listed in advisory | Not stated | ALAS2023-2023-035 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
12- 20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina http://seclists.org/fulldisclosure/2022/May/33
- 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 http://seclists.org/fulldisclosure/2022/May/35
- 20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4 http://seclists.org/fulldisclosure/2022/May/38
- [debian-lts-announce] 20220218 [SECURITY] [DLA 2926-1] zsh security update https://lists.debian.org/debian-lts-announce/2022/02/msg00020.html
- FEDORA-2022-adf0c6d196 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/
- FEDORA-2022-0a06987c3c https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/
- https://support.apple.com/kb/HT213255
- https://support.apple.com/kb/HT213256
- https://support.apple.com/kb/HT213257
- https://vuln.ryotak.me/advisories/63
- DSA-5078 https://www.debian.org/security/2022/dsa-5078
- https://zsh.sourceforge.io/releases.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2d27e9c0866fa1e0ab654604570f7c824c37001fbd5e53c050d01e02d01b0fd6
- Ingested
- 23 Sep 2026, 07:56:50 UTC
- Source record
- Official CVE record