What’s Vulnerable › Vulnerabilities
CVE-2021-3769: OS Command Injection in ohmyzsh/ohmyzsh
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-11-30 · updated 2026-06-17
- Weakness: CWE-78
Description
# Vulnerability in `pygmalion`, `pygmalion-virtualenv` and `refined` themes **Description**: these themes use `print -P` on user-supplied strings to print them to the terminal. All of them do that on git information, particularly the branch name, so if the branch has a specially-crafted name the vulnerability can be exploited. **Fixed in**: [b3ba9978](https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978). **Impacted areas**: - `pygmalion` theme. - `pygmalion-virtualenv` theme. - `refined` theme.
Affected products
- ohmyzsh/ohmyzsh: before 2021-11-11 — fixed in 2021-11-11
How to fix
Upgrade to a fixed version: ohmyzsh/ohmyzsh 2021-11-11. Check the vendor advisory for mitigations.
References
- https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978
- https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978
Get alerted when CVE-2021-3769 or the next vulnerability affects your stack