CVE-2021-45444

zsh: Prompt expansion vulnerability

Published Feb 13, 2022 CVSS 3.1 · 7.8 High EPSS 2.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2926-1 zsh security update
Debian DSA Debian DSA DSA-5078-1 zsh security update
EUVD EUVD EUVD-2021-32215 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.
Ubuntu USN Ubuntu USN USN-5325-1 Zsh vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00085}

epss

{'score': 0.00094}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 4:39 AM
Reserved
Dec 21, 2021, 12:00 AM
Status
Modified
Published
Feb 14, 2022, 12:15 PM
Modified
Jun 17, 2026, 4:13 AM
Severity
Moderate
Public date
Feb 12, 2022, 12:00 AM