CVE-2021-21289
Summary
| CVE | CVE-2021-21289 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-02-02 19:15:00 UTC |
| Updated | 2023-11-07 03:29:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| [SECURITY] [DLA 2561-1] ruby-mechanize security update |
MLIST |
lists.debian.org |
Mailing List, Third Party Advisory |
| Merge pull request #548 from kyoshidajp/fix_command_injection · sparklemotion/mechanize@66a6a1b · GitHub |
MISC |
github.com |
Patch, Third Party Advisory |
| Command Injection Vulnerability · Advisory · sparklemotion/mechanize · GitHub |
CONFIRM |
github.com |
Third Party Advisory |
| Release 2.7.7 / 2021-02-01 · sparklemotion/mechanize · GitHub |
MISC |
github.com |
Release Notes, Third Party Advisory |
| [SECURITY] Fedora 33 Update: rubygem-mechanize-2.7.7-1.fc33 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| [SECURITY] Fedora 32 Update: rubygem-mechanize-2.7.7-1.fc32 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| Mechanize: Command injection (GLSA 202107-17) — Gentoo security |
GENTOO |
security.gentoo.org |
|
| [SECURITY] Fedora 32 Update: rubygem-mechanize-2.7.7-1.fc32 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
Mailing List, Third Party Advisory |
| [SECURITY] Fedora 33 Update: rubygem-mechanize-2.7.7-1.fc33 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
Mailing List, Third Party Advisory |
| mechanize | RubyGems.org | your community gem host |
MISC |
rubygems.org |
Product, Third Party Advisory |
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 180101 Debian Security Update for ruby-mechanize (CVE-2021-21289)
- 710059 Gentoo Linux Mechanize Command injection (GLSA 202107-17)