THREATPORT/VULNERABILITY/CVE-2021-21289
HIGH SEVERITY

CVE-2021-21289

Mechanize vulnerability

CVSS
7.4
EPSS
3.5%
EPSS pct
88th
Exploited
No known
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.
Affected vendor
Mechanize Project
Affected product
Mechanize
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
Weakness type (CWE)
  • CWE-78 — OS Command Injection
Published
2021-02-02

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring no privileges, user interaction. Successful exploitation leads to high impact to integrity.

Its EPSS score of 3.5% reflects a lower probability of exploitation activity in the wild over the next 30 days, placing it above 88% of all scored CVEs.

Check your external exposure to CVE-2021-21289

  • Confirm whether Mechanize Project Mechanize is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2021-21289.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2021-21289

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2021-21289 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2021-21289?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2021-21289.

Start free scan

No credit card. Agentless.