CVE-2021-3725 OS Command Injection in ohmyzsh/ohmyzsh

High 7.5 Published Updated

Attackers can execute arbitrary commands by tricking users into navigating to a maliciously named directory and using history navigation shortcuts.

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-3725?

CVE-2021-3725 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 dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a directory with a carefully-crafted name, then press Alt-Left, the system is subject to command injection. Impacted areas: - Functions pop_past and pop_future in dirhistory plugin.

Weakness: CWE-94, CWE-78

Which versions are affected by CVE-2021-3725?

It affects 1 product.

Products include Planetargon Oh My Zsh.

How do I fix CVE-2021-3725?

No fix has been published for CVE-2021-3725 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-3725 being exploited?

There is no known exploitation of CVE-2021-3725 in the wild and no public exploit code.

Sources

Also known as GHSA-3jcx-v57w-c6rq.

Is CVE-2021-3725 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free