What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: ohmyzsh/ohmyzsh 11-11-2021. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-3725 or the next vulnerability affects your stack