RCE in Ohmyzsh Ohmyzsh/ohmyzsh

CVE-2021-3769

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

Vulnerability class: Command Injection (OS Command Injection)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.010 (60.7th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 61st percentile — 60.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-3769: held from 0.009 to 0.010.

EPSS over last 30 days · oldest: 0.009 · newest: 0.010 · change: +0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-3769?
CVE-2021-3769 is a high-severity vulnerability in Ohmyzsh Ohmyzsh/ohmyzsh, classified under OS Command Injection. CVSS score: 7.5/10. Published 2021-11-30.
How severe is CVE-2021-3769?
High severity. CVSS v3 base score is 7.5 out of 10.