CVE-2021-3726 OS Command Injection in ohmyzsh/ohmyzsh
Attackers can execute arbitrary commands if custom user code unsafely uses the title function in Oh My Zsh.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-3726?
CVE-2021-3726 is a high-severity command injection vulnerability in ohmyzsh/ohmyzsh, published on 30 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
# Vulnerability in `title` function **Description**: the `title` function defined in `lib/termsupport.zsh` uses `print` to set the terminal title to a user-supplied string. In Oh My Zsh, this function is always used securely, but custom user code could use the `title` function in a way that is unsafe. **Fixed in**: [a263cdac](https://github.com/ohmyzsh/ohmyzsh/commit/a263cdac). **Impacted areas**: - `title` function in `lib/termsupport.zsh`. - Custom user code using the `title` function.
Weakness: CWE-78
Which versions are affected by CVE-2021-3726?
It affects 1 product.
Products include Planetargon Oh My Zsh.
How do I fix CVE-2021-3726?
No fix has been published for CVE-2021-3726 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2021-3726 being exploited?
There is no known exploitation of CVE-2021-3726 in the wild and no public exploit code.
Other vulnerabilities in ohmyzsh/ohmyzsh
Sources
Also known as GHSA-8jcw-2h4x-29pq.