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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-21289— Command Injection Vulnerability in Mechanize

Quick assessment

Affected
sparklemotion mechanize
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.

Sparkle Motion Mechanize是Sparkle Motion组织的一个基于Ruby用于支持Web进行自动化交互的代码库。 Mechanize 存在操作系统命令注入漏洞,该漏洞允许使用几个类的方法注入操作系统命令,这些方法隐式地使用了Ruby的内核。

CVSS 7.4 · High EPSS 3.51% · P89
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-21289

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
Command Injection Vulnerability in Mechanize
Source: CVE Program / CVE List V5
Vulnerability Description
Mechanize is an open-source ruby library that makes automated web interaction easy. In Mechanize from version 2.0.0 and before version 2.7.7 there is a command injection vulnerability. Affected versions of mechanize allow for OS commands to be injected using several classes' methods which implicitly use Ruby's Kernel.open method. Exploitation is possible only if untrusted input is used as a local filename and passed to any of these calls: Mechanize::CookieJar#load, Mechanize::CookieJar#save_as, Mechanize#download, Mechanize::Download#save, Mechanize::File#save, and Mechanize::FileResponse#read_body. This is fixed in version 2.7.7.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Sparkle Motion Mechanize 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Sparkle Motion Mechanize是Sparkle Motion组织的一个基于Ruby用于支持Web进行自动化交互的代码库。 Mechanize 存在操作系统命令注入漏洞,该漏洞允许使用几个类的方法注入操作系统命令,这些方法隐式地使用了Ruby的内核。
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
sparklemotion mechanize >= 2.0, < 2.7.7 -

II. Public POCs for CVE-2021-21289

# 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-21289

请登录查看更多情报信息。

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

Vendor Advisories for CVE-2021-21289 (2)

Mailing List Discussions for CVE-2021-21289 (3)

Other References for CVE-2021-21289 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2021-21289

No comments yet


Leave a comment