PT-2022-1769
CVE-2021-45444
·
Published
2022-02-12
·
Updated
2026-10-31
Description by
CVSS 2.0
10
HighMetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions
zsh versions prior to 5.8.1
Description
The issue is related to the recursive PROMPT SUBST expansion in zsh, allowing an attacker to achieve code execution if they control a command output inside the prompt. This can be demonstrated by a
%F argument.Recommendations
For versions prior to 5.8.1, update to zsh version 5.8.1 to resolve the issue. As a temporary workaround, consider restricting the use of the
%F argument in the prompt to minimize the risk of exploitation. Found an issue in the description? Have something to add? Feel free to write us 👾