CVE-2021-3727

published 30 Nov 2021 · updated 3 Aug 2024

OS Command Injection in ohmyzsh/ohmyzsh

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 72928432.

# Vulnerability in `rand-quote` and `hitokoto` plugins **Description**: the `rand-quote` and `hitokoto` fetch quotes from quotationspage.com and hitokoto.cn respectively, do some process on them and then use `print -P` to print them. If these quotes contained the proper symbols, they could trigger command injection. Given that they're an external API, it's not possible to know if the quotes are safe to use. **Fixed in**: [72928432](https://github.com/ohmyzsh/ohmyzsh/commit/72928432). **Impacted areas**: - `rand-quote` plugin (`quote` function). - `hitokoto` plugin (`hitokoto` function).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ohmyzsh<7292843272928432

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-3727 severity on Zeptric[![CVE-2021-3727](https://zeptric.io/badge/cve/CVE-2021-3727.svg)](https://zeptric.io/cve/CVE-2021-3727)