CVE-2021-3727CWE-78

OS Command Injection in ohmyzsh/ohmyzsh

High · published November 30, 2021

CVSS v3.1
7.5
EPSS
1%
Percentile
63.4
In the wild
Unconfirmed
What it is

# 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).

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01031 · 63.4th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2021-11-30T09:30Z
EPSS history
Timeline
  • 30 NOV 09:30Z
    OS Command Injection in ohmyzsh/ohmyzsh
    cvelistv5