CVE-2021-3727
published high CVSS 3.1 · 7.5OS Command Injection in ohmyzsh/ohmyzsh
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ohmyzsh | — | ohmyzsh/ohmyzshunspecified to < 72928432 | Affected | Not stated | @huntrdev |
Description
# 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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- @huntrdev · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ohmyzsh | ohmyzsh/ohmyzsh | unspecified to < 72928432 (affected · custom) | @huntrdev · cna |
Weaknesses
1- CWE-78 CWE-78 OS Command Injection
References
1Provider assertions
2@huntrdev · cna
OS Command Injection in ohmyzsh/ohmyzsh
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6dae6a17692984b75a1129849ccf1065984b81a4f2bbf15713bcfb4d52a61e47
- Ingested
- 23 Sep 2026, 07:55:51 UTC
- Source record
- Official CVE record