CVEvulnerability

CVE-2021-45444

7.8 HIGH Published 2022-02-14 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-02-14
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0 ([email protected])
5.1 MEDIUM — AV:N/AC:H/Au:N/C:P/I:P/A:P

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 configurations

• zsh zsh (< 5.8.1) • fedoraproject fedora 34 • fedoraproject fedora 35 • debian debian linux 9.0 • debian debian linux 10.0 • debian debian linux 11.0 • apple mac os x (>= 10.15 < 10.15.7) • apple mac os x 10.15.7 • apple macos (>= 11.0 < 11.6.6) • apple macos (>= 12.0.0 < 12.4)

References