Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-21289

7.4 · HIGH
Published Feb 2, 2021 mechanize_project CWE-78 EPSS 3.51% (88th pctl)

Overview

CVE-2021-21289 is a high-severity vulnerability affecting mechanize_project mechanize. It was published on February 2, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from mechanize_project. Update mechanize to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
mechanize_project mechanize >= 2.0, < 2.7.7 Affected

Frequently Asked Questions

What is CVE-2021-21289?

CVE-2021-21289 is a high-severity vulnerability affecting mechanize_project mechanize. It was published on February 2, 2021 and has a CVSS 3.1 base score of 7.4 (HIGH).

How severe is CVE-2021-21289?

This vulnerability has a CVSS 3.1 base score of 7.4, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-21289?

Check the references section for vendor advisories and patches from mechanize_project. Update mechanize to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-21289?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-21289 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.