Skip to content
OpenAdvisories
Unscored CVE-2021-45444 EUVD-2021-32215GHSA-735j-r9q6-48mw

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 arg…

Published Feb 13, 2022 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 zsh 5.8.1-1 —
Debian 13 zsh 5.8.1-1 —
Debian 12 zsh 5.8.1-1 —
Debian 11 zsh 5.8-6+deb11u1 DSA-5078-1
Debian 10 zsh 5.7.1-1+deb10u1 DSA-5078-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 zsh 5.3.1-4+deb9u5 DLA-2926-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS zsh No fix yet —
Ubuntu 20.04 LTS zsh 5.8-3ubuntu1.1 USN-5325-1
Ubuntu 18.04 LTS zsh 5.4.2-3ubuntu3.2 USN-5325-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS zsh 5.1.1-1ubuntu2.3+esm1 USN-5325-1
ReleasePackageFixed inAdvisory
RHEL 8 zsh +1 5.5.1-9.el8 RHSA-2022:2120

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 zsh +1 5.5.1-9.el8 ALSA-2022:2120

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 zsh 5.5.1-9.el8 RLSA-2022:2120
ReleasePackageFixed inAdvisory
SLES 15 SP3 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLES 15 SP2 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLES 15 SP1 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLES 15 zsh 5.6-3.11.1 SUSE-SU-2022:0732-1
SLES 12 SP5 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
Show 23 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SLES 12 SP3 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SLES 12 SP2 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SLES for SAP 15 SP2 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLES for SAP 15 SP1 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLES for SAP 15 zsh 5.6-3.11.1 SUSE-SU-2022:0732-1
SLES for SAP 12 SP5 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SLES for SAP 12 SP4 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SLES for SAP 12 SP3 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SLE Real Time 15 SP2 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLE HPC 15 SP2 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLE HPC 15 SP1 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SLE HPC 15 zsh 5.6-3.11.1 SUSE-SU-2022:0732-1
SUSE OpenStack Cloud Crowbar 9 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SUSE OpenStack Cloud Crowbar 8 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SUSE OpenStack Cloud 9 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SUSE OpenStack Cloud 8 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SUSE Manager Server 4.1 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SUSE Manager Retail Branch Server 4.1 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SUSE Manager Proxy 4.1 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SUSE HPE Helion OpenStack 8 zsh 5.0.5-6.19.1 SUSE-SU-2022:0733-1
SUSE Enterprise Storage 7 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
SUSE Enterprise Storage 6 zsh 5.6-7.5.1 SUSE-SU-2022:0735-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed zsh 5.8.1-1.1 openSUSE-SU-2024:11959-1
openSUSE Leap 15.3 zsh 5.6-7.5.1 openSUSE-SU-2022:0735-1
ReleasePackageFixed inAdvisory
Alpine v3.24 zsh 5.8.1-r0 —
Alpine v3.23 zsh 5.8.1-r0 —
Alpine v3.22 zsh 5.8.1-r0 —
Alpine v3.21 zsh 5.8.1-r0 —
Alpine v3.20 zsh 5.8.1-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 zsh 5.8.1-r0 —
Alpine v3.18 zsh 5.8.1-r0 —
Alpine v3.17 zsh 5.8.1-r0 —
Alpine v3.16 zsh 5.8.1-r0 —
Alpine v3.15 zsh 5.8.1-r0 —
Alpine v3.14 zsh 5.8.1-r0 —
Alpine v3.13 zsh 5.8.1-r0 —
Alpine v3.12 zsh 5.8.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 zsh +1 5.8.1-1.amzn2023.0.3 ALAS2023-2023-035
Amazon Linux 2 zsh +1 5.8.1-1.amzn2.0.1 ALAS2-2022-1757

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) zsh 5.9-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 zsh +1 5.5.1-9.el8 ELSA-2022-2120

Advisories 17

References