Skip to content

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

CriticalCVSS 9.8 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known

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. Impacted areas: - rand-quote plugin (quote function). - hitokoto plugin (hitokoto function).

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
ohmyzsh/ohmyzsh < 72928432 72928432 Fixed
planetargon oh my zsh < 72928432 72928432 Fixed

Affected products

ProductAffected versionsFixed in
planetargon oh my zsh < 72928432 72928432
ohmyzsh/ohmyzsh < 72928432 72928432

References