cve.bz

CVE-2021-45444

7.8 highEPSS 2.0%

High (7.8). EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-45444 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-45444?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-45444?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-45444 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
zsh:zshbefore 5.8.1
fedoraproject:fedora34
fedoraproject:fedora35
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
apple:mac_os_xfrom 10.15 before 10.15.7
apple:mac_os_x10.15.7:security_update_2020
apple:mac_os_x10.15.7:security_update_2020-001
apple:mac_os_x10.15.7:security_update_2020-005
apple:mac_os_x10.15.7:security_update_2020-007
apple:mac_os_x10.15.7:security_update_2021-001
apple:mac_os_x10.15.7:security_update_2021-002
apple:mac_os_x10.15.7:security_update_2021-003
apple:mac_os_x10.15.7:security_update_2021-006
apple:mac_os_x10.15.7:security_update_2021-007
apple:mac_os_x10.15.7:security_update_2021-008
apple:mac_os_x10.15.7:security_update_2022-001
apple:mac_os_x10.15.7:security_update_2022-002
apple:mac_os_x10.15.7:security_update_2022-003
apple:macosfrom 11.0 before 11.6.6
apple:macosfrom 12.0.0 before 12.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9zsh5.3.1-4+deb9u5DLA-2926-1
Debian10zsh5.7.1-1+deb10u1DSA-5078-1
Debian11zsh5.8-6+deb11u1DSA-5078-1
Debian12, 13, 14zsh5.8.1-1DEBIAN-CVE-2021-45444
Ubuntu18.04:LTSzsh5.4.2-3ubuntu3.2UBUNTU-CVE-2021-45444 USN-5325-1
Ubuntu20.04:LTSzsh5.8-3ubuntu1.1UBUNTU-CVE-2021-45444 USN-5325-1
Ubuntu22.04:LTSzshno fix listedUBUNTU-CVE-2021-45444
UbuntuPro:16.04:LTSzsh5.1.1-1ubuntu2.3+esm1UBUNTU-CVE-2021-45444 USN-5325-1
Red Hatenterprise_linux:8::appstreamzsh-html0:5.5.1-9.el8RHSA-2022:2120
Red Hatenterprise_linux:8::baseoszsh, zsh-debuginfo, zsh-debugsource0:5.5.1-9.el8RHSA-2022:2120
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 14 morezsh5.6-7.5.1SUSE-SU-2022:0735-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 10 morezsh5.0.5-6.19.1SUSE-SU-2022:0733-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morezsh5.6-3.11.1SUSE-SU-2022:0732-1
openSUSELeap 15.3zsh5.6-7.5.1openSUSE-SU-2022:0735-1
openSUSETumbleweedzsh5.8.1-1.1openSUSE-SU-2024:11959-1
AlmaLinux8zsh, zsh-html5.5.1-9.el8ALSA-2022:2120
Rocky Linux8zsh0:5.5.1-9.el8RLSA-2022:2120
Alpinev3.12, v3.13, v3.14 and 10 morezsh5.8.1-r0ALPINE-CVE-2021-45444
Azure Linux2zsh5.9-1AZL-8586

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Enterprise Linux 6 and 7 are not affected, because the vulnerable function is not present in the code-base.

Red Hat Product Security has rated this issue as having a Moderate security impact, and the issue is not currently planned to be addressed in future updates for Red Hat Enterprise Linux 6 and 7, hence, marked as Out-of-Support-Scope.

For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/ and Red Hat Enterprise Linux Life Cycle & Updates Policy: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8zsh-0:5.5.1-9.el8Fixed 2022-05-10RHSA-2022:2120
Red Hat Enterprise Linux 6zshNot affected
Red Hat Enterprise Linux 7zshNot affected
Red Hat Enterprise Linux 9zshNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-45444.

References

Check your stackJSON