Name | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2926-1, DSA-5078-1, ELA-565-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
zsh (PTS) | jessie, jessie (lts) | 5.0.7-5+deb8u4 | fixed |
stretch (security), stretch (lts), stretch | 5.3.1-4+deb9u5 | fixed | |
buster (security), buster, buster (lts) | 5.7.1-1+deb10u1 | fixed | |
bullseye (security), bullseye | 5.8-6+deb11u1 | fixed | |
bookworm | 5.9-4 | fixed | |
sid, trixie | 5.9-8 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
zsh | source | jessie | 5.0.7-5+deb8u4 | ELA-565-1 | ||
zsh | source | stretch | 5.3.1-4+deb9u5 | DLA-2926-1 | ||
zsh | source | buster | 5.7.1-1+deb10u1 | DSA-5078-1 | ||
zsh | source | bullseye | 5.8-6+deb11u1 | DSA-5078-1 | ||
zsh | source | (unstable) | 5.8.1-1 |
https://sourceforge.net/p/zsh/code/ci/c187154f47697cdbf822c2f9d714d570ed4a0fd1/
https://sourceforge.net/p/zsh/code/ci/fdb8b0ce6244ff26bf55e0fd825310a58d0d3156/
https://sourceforge.net/p/zsh/code/ci/bdc4d70a7e033b754e68a8659a037ea0fc5f38de/