OS Command Injection in zsh - CVE-2021-45444
Published: February 17, 2022
Vulnerability details
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.
Affected software
Gentoo Linux
Amazon Linux AMI
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
SUSE OpenStack Cloud
HPE Helion Openstack
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
SUSE OpenStack Cloud Crowbar
Anolis OS
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Debian Linux
macOS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Slackware Linux
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
Ubuntu
openEuler
Fedora
zsh (Debian package)
zsh-static (Ubuntu package)
zsh (Ubuntu package)
zsh-debugsource
zsh-debuginfo
zsh
zsh-html
zsh (Red Hat package)
zsh-help
app-shells/zsh
How to mitigate CVE-2021-45444
macOS - addressed in versions 10.15.7 19H1922, 11.6.6 20G624, 12.4 21F79
zsh (Debian package) - addressed in versions 5.3.1-4+deb9u5, 5.7.1-1+deb10u1, 5.8-6+deb11u1
zsh-static (Ubuntu package) - addressed in versions UA Infra or UA Desktop, 5.4.2-3ubuntu3.2, 5.8-3ubuntu1.1, 5.8-6ubuntu0.1
zsh (Ubuntu package) - addressed in versions UA Infra or UA Desktop, 5.4.2-3ubuntu3.2, 5.8-3ubuntu1.1, 5.8-6ubuntu0.1
zsh-debugsource - addressed in versions 5.0.5-6.19.1, 5.6-3.11.1, 5.6-7.5.1
zsh-debuginfo - addressed in versions 5.0.5-6.19.1, 5.6-3.11.1, 5.6-7.5.1
zsh - addressed in versions 5.0.5-6.19.1, 5.6-3.11.1, 5.6-7.5.1
zsh-html - update to 5.5.1-9
zsh - update to 5.5.1-9
zsh (Red Hat package) - update to 5.5.1-9.el8
zsh-debugsource - addressed in versions 5.7.1-6, 5.8-3
zsh - addressed in versions 5.7.1-6, 5.8-3
zsh-debuginfo - addressed in versions 5.7.1-6, 5.8-3
zsh-help - addressed in versions 5.7.1-6, 5.8-3
zsh - update to 5.8.1-1
zsh - addressed in versions 5.8.1-1.fc34, 5.8.1-1.fc35
app-shells/zsh - update to 5.8.1
zsh - update to 5.9
External References
Related Security Bulletins
- Remote command execution in zsh
- Debian update for zsh
- Ubuntu update for zsh
- Red Hat Enterprise Linux 8 update for zsh
- Multiple vulnerabilities in Apple macOS Monterey
- Multiple vulnerabilities in Apple macOS Big Sur
- Multiple vulnerabilities in Apple macOS Catalina
- SUSE update for zsh
- SUSE update for zsh
- SUSE update for zsh
- openEuler update for zsh
- openEuler 22.03 LTS update for zsh
- Gentoo update for Zsh
- Amazon Linux AMI update for zsh
- Fedora 35 update for zsh
- Fedora 34 update for zsh
- Anolis OS update for zsh
- Slackware Linux update for zsh
- Debian update for zsh