CVE-2021-21289
Detail
Modified
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N
CVSS 2.0 Severity and Vector Strings:
Vector:
(AV:N/AC:H/Au:N/C:C/I:C/A:C)
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
URL
Source(s)
Tag(s)
https://github.com/sparklemotion/mechanize/commit/66a6a1bfa653a5f13274a396a5e5441238656aa0
CVE, GitHub, Inc.
Patch
Third Party Advisory
https://github.com/sparklemotion/mechanize/releases/tag/v2.7.7
CVE, GitHub, Inc.
Release Notes
Third Party Advisory
https://github.com/sparklemotion/mechanize/security/advisories/GHSA-qrqm-fpv6-6r8g
CVE, GitHub, Inc.
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/02/msg00021.html
CVE, GitHub, Inc.
Mailing List
Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/
CVE, GitHub, Inc.
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/
CVE, GitHub, Inc.
https://rubygems.org/gems/mechanize/
CVE, GitHub, Inc.
Product
Third Party Advisory
https://security.gentoo.org/glsa/202107-17
CVE, GitHub, Inc.
Third Party Advisory
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-78
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
NIST
GitHub, Inc.
Change History
10 change records found show changes
CVE Modified by CVE 11/21/2024 12:47:56 AM
Action
Type
Old Value
New Value
Added
Reference
https://github.com/sparklemotion/mechanize/commit/66a6a1bfa653a5f13274a396a5e5441238656aa0
Added
Reference
https://github.com/sparklemotion/mechanize/releases/tag/v2.7.7
Added
Reference
https://github.com/sparklemotion/mechanize/security/advisories/GHSA-qrqm-fpv6-6r8g
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/02/msg00021.html
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/
Added
Reference
https://rubygems.org/gems/mechanize/
Added
Reference
https://security.gentoo.org/glsa/202107-17
CVE Modified by GitHub, Inc. 5/14/2024 4:09:27 AM
Action
Type
Old Value
New Value
CVE Modified by GitHub, Inc. 11/06/2023 10:29:43 PM
Action
Type
Old Value
New Value
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/ [No types assigned]
Added
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/ [No types assigned]
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/
Removed
Reference
GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected] /message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/
Modified Analysis by NIST 4/26/2022 11:07:42 AM
Action
Type
Old Value
New Value
Added
CWE
NIST CWE-78
Changed
Reference Type
https://security.gentoo.org/glsa/202107-17 No Types Assigned
https://security.gentoo.org/glsa/202107-17 Third Party Advisory
CVE Modified by GitHub, Inc. 7/08/2021 3:15:17 AM
Action
Type
Old Value
New Value
Added
Reference
https://security.gentoo.org/glsa/202107-17 [No Types Assigned]
Modified Analysis by NIST 2/19/2021 12:39:25 PM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Changed
Reference Type
https://lists.debian.org/debian-lts-announce/2021/02/msg00021.html No Types Assigned
https://lists.debian.org/debian-lts-announce/2021/02/msg00021.html Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/ Third Party Advisory
https://lists.fedoraproject.org/archives/list/[email protected] /message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/ Third Party Advisory
https://lists.fedoraproject.org/archives/list/[email protected] /message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/ Mailing List, Third Party Advisory
CVE Modified by GitHub, Inc. 2/16/2021 6:15:13 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.debian.org/debian-lts-announce/2021/02/msg00021.html [No Types Assigned]
Modified Analysis by NIST 2/16/2021 9:37:25 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Removed
CVSS V3.1
NIST AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:N/AC:H/Au:N/C:C/I:C/A:C)
Removed
CVSS V2
NIST (AV:N/AC:M/Au:N/C:C/I:C/A:C)
Added
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/ Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/ Third Party Advisory
CVE Modified by GitHub, Inc. 2/11/2021 1:15:16 PM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/LBVVJUL4P4KCJH4IQTHFZ4ATXY7XXZPV/ [No Types Assigned]
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/YNFZ7ROYS6V4J5L5PRAJUG2AWC7VXR2V/ [No Types Assigned]
Initial Analysis by NIST 2/08/2021 11:40:15 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:N/AC:M/Au:N/C:C/I:C/A:C)
Added
CPE Configuration
OR
*cpe:2.3:a:mechanize_project:mechanize:*:*:*:*:*:ruby:*:* versions from (including) 2.0 up to (excluding) 2.7.7
Changed
Reference Type
https://github.com/sparklemotion/mechanize/commit/66a6a1bfa653a5f13274a396a5e5441238656aa0 No Types Assigned
https://github.com/sparklemotion/mechanize/commit/66a6a1bfa653a5f13274a396a5e5441238656aa0 Patch, Third Party Advisory
Changed
Reference Type
https://github.com/sparklemotion/mechanize/releases/tag/v2.7.7 No Types Assigned
https://github.com/sparklemotion/mechanize/releases/tag/v2.7.7 Release Notes, Third Party Advisory
Changed
Reference Type
https://github.com/sparklemotion/mechanize/security/advisories/GHSA-qrqm-fpv6-6r8g No Types Assigned
https://github.com/sparklemotion/mechanize/security/advisories/GHSA-qrqm-fpv6-6r8g Third Party Advisory
Changed
Reference Type
https://rubygems.org/gems/mechanize/ No Types Assigned
https://rubygems.org/gems/mechanize/ Product, Third Party Advisory
Added
CVSS V2 Metadata
Victim must voluntarily interact with attack mechanism
Quick Info
CVE Dictionary Entry: CVE-2021-21289 NVD
Published Date: 02/02/2021 NVD
Last Modified: 11/21/2024
Source: GitHub, Inc.