Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2021-3727— OS Command Injection in ohmyzsh/ohmyzsh

Quick assessment

Affected
ohmyzsh ohmyzsh/ohmyzsh
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ohmyzsh是一个开源的、社区驱动的框架,用于管理您的zsh配置。 ohmyzsh 存在操作系统命令注入漏洞,攻击者可以利用该漏洞通过rand-quote和hitokoto插件触发命令注入。

CVSS 7.5 · High EPSS 1.03% · P61

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-3727

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
OS Command Injection in ohmyzsh/ohmyzsh
Source: CVE Program / CVE List V5
Vulnerability 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).
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
ohmyzsh 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
ohmyzsh是一个开源的、社区驱动的框架,用于管理您的zsh配置。 ohmyzsh 存在操作系统命令注入漏洞,攻击者可以利用该漏洞通过rand-quote和hitokoto插件触发命令注入。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ohmyzsh ohmyzsh/ohmyzsh unspecified ~ 72928432 -

II. Public POCs for CVE-2021-3727

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-3727

登录查看更多情报信息。

Patches & Fixes for CVE-2021-3727 (1)

Same Patch Batch · ohmyzsh · 2021-11-30 · 4 CVEs total

CVE-2021-3725 7.5 HIGH OS Command Injection in ohmyzsh/ohmyzsh
CVE-2021-3726 7.5 HIGH OS Command Injection in ohmyzsh/ohmyzsh
CVE-2021-3769 7.5 HIGH OS Command Injection in ohmyzsh/ohmyzsh

IV. Related Vulnerabilities

V. Comments for CVE-2021-3727

No comments yet


Leave a comment