What’s Vulnerable › Vulnerabilities

CVE-2021-45444

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 products

How to fix

Upgrade to a fixed version: macOS 10.15.7; Apple macOS 11.6.6, 12.4; zsh 5.8.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-45444 or the next vulnerability affects your stack