OS Command Injection in ohmyzsh/ohmyzsh
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-78.
Summary
# 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
- Fix · CNA ohmyzsh/ohmyzsh (ohmyzsh) Fixed in b3ba9978
Timeline
- 2026-10-02 Threatist record created from CVE-2021-3769
- 2026-10-03 Alias added: GHSA-f8r6-c3hp-ccv4
References
More ohmyzsh Oh My Zsh vulnerabilities
- TI-2021-02660 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1CRITICAL 9.8
- TI-2021-02659 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1CRITICAL 9.8
- TI-2021-02658 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1HIGH 8.8
- TI-2021-02841 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1HIGH 7.5
Sources
- CVE-2021-3769 · CVE Program
- CVE-2021-3769 · NVD
- FIRST EPSS
- GHSA-f8r6-c3hp-ccv4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences