Vulnerabilities · 2021 · Zsh
CVE-2021-45444
Zsh vulnerability
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
Zsh, Fedora, Debian Linux, Mac Os X, Macos. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Zsh runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- seclists.org/fulldisclosure/2022/May/33 · Third Party Advisory
- seclists.org/fulldisclosure/2022/May/35 · Third Party Advisory
- seclists.org/fulldisclosure/2022/May/38 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/02/msg00020.html · Third Party Advisory
- support.apple.com/kb/HT213255 · Third Party Advisory
- support.apple.com/kb/HT213256 · Third Party Advisory
- support.apple.com/kb/HT213257 · Third Party Advisory
- vuln.ryotak.me/advisories/63 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-45444
- cve.org/CVERecord?id=CVE-2021-45444
More vulnerabilities in Zsh products
CVE-2019-20044CVE-2018-13259CVE-2018-7549CVE-2018-7548CVE-2018-1100CVE-2018-1083CVE-2018-1071CVE-2018-0502All 13
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.