CVE-2021-3725

OS Command Injection in ohmyzsh/ohmyzsh

HIGH
8.8
CVSS Score
Published: November 30, 2021 at 09:30 AM UTC
Updated: June 17, 2026 at 04:05 AM UTC
2 products affected across 2 vendorsOh My ZshOhmyzsh

Using ohmyzsh/ohmyzsh by ohmyzsh?

Get instant alerts when new vulnerabilities affect ohmyzsh/ohmyzsh - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 11-11-2021
Affected range stops below 11-11-2021, so it looks safe — our inference, not a vendor statement
v < 06fc5fb
Affected range stops below 06fc5fb, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_MISCPatchThird Party Advisory
https://github.com/ohmyzsh/ohmyzsh/commit/06fc5fb

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-78CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card