CVE-2021-45444
Fixed in a distro release EPSS 2%
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.
Products: zsh, fedoraproject fedora, debian_linux, apple mac_os_x, apple macos
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | zsh | 5.5.1-9.el8 |
| AlmaLinux 8 | zsh-html | 5.5.1-9.el8 |
| Alpine 3.12 | zsh | 5.8.1-r0 |
| Alpine 3.13 | zsh | 5.8.1-r0 |
| Alpine 3.14 | zsh | 5.8.1-r0 |
| Alpine 3.15 | zsh | 5.8.1-r0 |
| Alpine 3.16 | zsh | 5.8.1-r0 |
| Alpine 3.17 | zsh | 5.8.1-r0 |
| Alpine 3.18 | zsh | 5.8.1-r0 |
| Alpine 3.19 | zsh | 5.8.1-r0 |
| Alpine 3.20 | zsh | 5.8.1-r0 |
| Alpine 3.21 | zsh | 5.8.1-r0 |
| Alpine 3.22 | zsh | 5.8.1-r0 |
| Alpine 3.23 | zsh | 5.8.1-r0 |
| Alpine 3.24 | zsh | 5.8.1-r0 |
| Amazon Linux 2 | zsh | 5.8.1-1.amzn2.0.1 |
| Amazon Linux 2 | zsh-html | 5.8.1-1.amzn2.0.1 |
| Amazon Linux 2023 | zsh | 5.8.1-1.amzn2023.0.3 |
| Amazon Linux 2023 | zsh-html | 5.8.1-1.amzn2023.0.3 |
| Debian 10 | zsh | 5.7.1-1+deb10u1 |
| Debian 11 | zsh | 5.8-6+deb11u1 |
| Debian 12 | zsh | 5.8.1-1 |
| Debian 13 | zsh | 5.8.1-1 |
| Debian 14 | zsh | 5.8.1-1 |
| Debian 9 | zsh | 5.3.1-4+deb9u5 |
| Red Hat Enterprise Linux 8 | zsh | 0:5.5.1-9.el8 |
| Red Hat Enterprise Linux 8 | zsh-debuginfo | 0:5.5.1-9.el8 |
| Red Hat Enterprise Linux 8 | zsh-debugsource | 0:5.5.1-9.el8 |
| Red Hat Enterprise Linux 8 | zsh-html | 0:5.5.1-9.el8 |
| Rocky Linux 8 | zsh | 0:5.5.1-9.el8 |
| SUSE Enterprise Storage 6 | zsh | 5.6-7.5.1 |
| SUSE Enterprise Storage 7 | zsh | 5.6-7.5.1 |
| SUSE HPE Helion OpenStack 8 | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | zsh | 5.6-3.11.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | zsh | 5.6-3.11.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Real Time 15 SP2 | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server 12 SP4-LTSS | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server 12 SP5 | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server 15 SP1-BCL | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Server 15 SP2-BCL | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Server 15-LTSS | zsh | 5.6-3.11.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | zsh | 5.0.5-6.19.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | zsh | 5.6-3.11.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | zsh | 5.6-7.5.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | zsh | 5.6-7.5.1 |
| SUSE Manager Proxy 4.1 | zsh | 5.6-7.5.1 |
| SUSE Manager Retail Branch Server 4.1 | zsh | 5.6-7.5.1 |
| SUSE Manager Server 4.1 | zsh | 5.6-7.5.1 |
| SUSE OpenStack Cloud 8 | zsh | 5.0.5-6.19.1 |
| SUSE OpenStack Cloud 9 | zsh | 5.0.5-6.19.1 |
| SUSE OpenStack Cloud Crowbar 8 | zsh | 5.0.5-6.19.1 |
| SUSE OpenStack Cloud Crowbar 9 | zsh | 5.0.5-6.19.1 |
| Ubuntu 18.04 LTS | zsh | 5.4.2-3ubuntu3.2 |
| Ubuntu 20.04 LTS | zsh | 5.8-3ubuntu1.1 |
| Ubuntu 22.04 LTS | zsh | no fix |
| Ubuntu Pro 16.04 LTS | zsh | 5.1.1-1ubuntu2.3+esm1 |
| openSUSE Leap 15.3 | zsh | 5.6-7.5.1 |
| openSUSE Tumbleweed | zsh | 5.8.1-1.1 |