Read the docs
TI-2021-02660 Aliases CVE-2021-3727GHSA-vg23-f593-6r27

OS Command Injection in ohmyzsh/ohmyzsh

Priority MEDIUM 44CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-78.

Summary

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

Why it matters now

EPSS 0.01031 63rd percentileScored 2026-11-07
Fix Fixed ohmyzsh/ohmyzsh (ohmyzsh): 72928432

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
ohmyzshohmyzsh/ohmyzshbefore 7292843272928432Patch availableCNA
  • ohmyzsh/ohmyzsh Vendorohmyzsh Affected before 72928432 Fixed in 72928432 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:*before 72928432Vulnerableohmyzsh
  • cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:* Versions before 72928432 Vulnerable ·ohmyzsh

Remediation

  • Fix · CNA ohmyzsh/ohmyzsh (ohmyzsh) Fixed in 72928432

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-3727
  2. 2026-10-03 Alias added: GHSA-vg23-f593-6r27

References

  • TI-2021-02701 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1CRITICAL 9.8
  • TI-2021-02659 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1CRITICAL 9.8
  • TI-2021-02658 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1HIGH 8.8
  • TI-2021-02841 OS Command Injection in ohmyzsh/ohmyzsh CVSS 3.1HIGH 7.5

Sources