Vulnerability · Published Feb 13, 2022 · Assigned by mitre

CVE-2021-45444

High 7.8

In plain English

A high-severity security flaw in the zsh package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.8High
Exploit odds (30 days)2.0%top 19.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8zsh5.5.1-9.el8ALSA-2022:2120
AlmaLinux:8zsh-html5.5.1-9.el8ALSA-2022:2120
Alpine:v3.20zsh5.8.1-r0ALPINE-CVE-2021-45444
Alpine:v3.21zsh5.8.1-r0ALPINE-CVE-2021-45444
Alpine:v3.22zsh5.8.1-r0ALPINE-CVE-2021-45444
Alpine:v3.23zsh5.8.1-r0ALPINE-CVE-2021-45444
Alpine:v3.24zsh5.8.1-r0ALPINE-CVE-2021-45444
Debian:12zsh5.8.1-1DEBIAN-CVE-2021-45444
Debian:13zsh5.8.1-1DEBIAN-CVE-2021-45444
Debian:14zsh5.8.1-1DEBIAN-CVE-2021-45444
Rocky Linux:8zsh0:5.5.1-9.el8RLSA-2022:2120
Ubuntu:22.04:LTSzshno fix listedUBUNTU-CVE-2021-45444

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References