Todas las CVE / Mechanize Project
CVE-2021-21289Mechanize Project Mechanize
Alta 8.3 Sin autenticación
Seguir: esta CVE · Mechanize Project · Mechanize Project Mechanize Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 65
- CVSS 3.1
- 8.3
- EPSS
- 3.5% probabilidad de explotación en 30 días · percentil 90
- Requiere autenticación
- No
- Publicada
- 2 feb 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-78
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Mechanize.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| RubyGems | mechanize |
≥ 2.0.0 < 2.7.7 |
2.7.7 |
gem "mechanize", ">= 2.7.7" |
Según OSV / GitHub Advisories (GHSA-qrqm-fpv6-6r8g). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| mechanize_project | mechanize | ≥ 2.0 < 2.7.7 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
| debian | debian_linux | 9.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- rubygems.org Product Third Party Advisory
- security.gentoo.org Third Party Advisory