# CVE-2021-3769: OS Command Injection in ohmyzsh/ohmyzsh

- Severity: High 7.5 (CVSS:3.1, scored by @huntrdev) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2021-11-30T09:30:18.000Z
- Modified: 2026-06-17T04:05:43.770Z
- Weaknesses: CWE-78
- Assigned by: @huntrdev

## 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.

(As written by CVE List.)

## Affected

- ohmyzsh ohmyzsh/ohmyzsh: from unspecified before b3ba9978
- planetargon oh_my_zsh: before 2021-11-11

## Every score

- @huntrdev: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/ohmyzsh/ohmyzsh/commit/b3ba9978> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3769](https://www.cve.org/CVERecord?id=CVE-2021-3769), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3769](https://nvd.nist.gov/vuln/detail/CVE-2021-3769), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3769 · Whole record: https://cve.day/CVE-2021-3769.json · Rebuilt by cve.day 2026-11-25T22:58:05.775Z
