OS Command Injection in zsh - CVE-2021-45444

 

OS Command Injection in zsh - CVE-2021-45444

Published: February 17, 2022


Vulnerability identifier: #VU60674
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-45444
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: SourceForge
Affected software:
zsh

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to recursive PROMPT_SUBST expansion when processing malicious output. A remote attacker with ability to control the output can inject and execute arbitrary commands on the system with privileges on the current user.



How to mitigate CVE-2021-45444

Install updates from vendor's website.

Sources