8.3

CVE-2021-21289: debian debian_linux OS Command Injection

CVSS: 8.3v3.1HighModified
AliasesMGASA-2021-0124UBUNTU-CVE-2021-21289DEBIAN-CVE-2021-21289
Published 02-02-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-21289 is a high (CVSS 8.3) OS Command Injection vulnerability in debian debian_linux. EPSS estimates a 3.51% chance of exploitation in the next 30 days, higher than 89.1% of scored vulnerabilities.

Overall risk
34/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.3/10
010
High · v3.1 (NVD)
EPSS score
3.51%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 02-02-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

3.51%

Chance of exploitation in the next 30 days

Percentile

89%

Versus all other CVEs

30-day change

0.00 pp

From 3.51% on 22-09-2026

22-09-202622-10-2026
EPSS score
3.51%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian2 products
  • ruby-mechanize< 2.7.5-1+deb9u1 | < 2.7.7-1
  • debian_linuxEOL9.0
Mageia2 products
  • ruby-mechanize< 2.7.6-2.1.mga7
  • ruby-mechanize< 2.7.6-3.1.mga8
Fedoraproject1 product
Mechanize_project1 product
RubyGems1 product
  • mechanize≥ 2.0.0, < 2.7.7
Sparklemotion1 product
Ubuntu1 product
  • ruby-mechanizeAll versions (No fix recorded)

7 vendors · 9 products

References

25 links
Show all 25 references