Live threats

All CVEs / Zsh

CVE-2021-45444Zsh

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
Yes
Published
Feb 14, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Zsh.

Affected products (CPE)

VendorProductVersions
zshzsh< 5.8.1
fedoraprojectfedora34
fedoraprojectfedora35
debiandebian_linux9.0
debiandebian_linux10.0
debiandebian_linux11.0
applemac_os_x≥ 10.15 < 10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemac_os_x10.15.7
applemacos≥ 11.0 < 11.6.6
applemacos≥ 12.0.0 < 12.4

Official sources

References

Links published by the sources. Open them with care.