SCA: security update for mechanize (GHSA-qrqm-fpv6-6r8g)

high Tenable Cloud Security Plugin ID 418306

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2021-21289)

See Also

https://github.com/advisories/GHSA-qrqm-fpv6-6r8g

Plugin Details

Severity: High

ID: 418306

Version: Revision 1.10

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 95.11

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2021-21289

CVSS v3

Risk Factor: High

Base Score: 8.3

Temporal Score: 7.2

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/2/2021

Vulnerability Publication Date: 2/2/2021

Reference Information

CVE: CVE-2021-21289

cwe: CWE-78