Vulnerability in Oh My Zsh Themes: Remote Code Execution via Specially-Crafted Branch Names

Vulnerability in Oh My Zsh Themes: Remote Code Execution via Specially-Crafted Branch Names

CVE-2021-3769 · CRITICAL Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

Learn more about our Cis Benchmark Audit For Print Devices.