CVE-2021-22904Rubyonrails Rails
Alta 7.5 Sin autenticación
Seguir: esta CVE · Rubyonrails · Rubyonrails Rails Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 4.9% probabilidad de explotación en 30 días · percentil 93
- Requiere autenticación
- No
- Publicada
- 11 jun 2021
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Qué pasa
The actionpack ruby gem before 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 suffers from a possible denial of service vulnerability in the Token Authentication logic in Action Controller due to a too permissive regular expression. Impacted code uses `authenticate_or_request_with_http_token` or `authenticate_with_http_token` for request authentication.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Rails.
- 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 | actionpack |
≥ 6.0.0 < 6.0.3.7 |
6.0.3.7 |
gem "actionpack", ">= 6.0.3.7" |
| RubyGems | actionpack |
≥ 6.1.0 < 6.1.3.2 |
6.1.3.2 |
gem "actionpack", ">= 6.1.3.2" |
| RubyGems | actionpack |
≥ 5.2.5 < 5.2.6 |
5.2.6 |
gem "actionpack", ">= 5.2.6" |
| RubyGems | actionpack |
≥ 4.0.0 < 5.2.4.6 |
5.2.4.6 |
gem "actionpack", ">= 5.2.4.6" |
Según OSV / GitHub Advisories (GHSA-7wjx-3g7j-8584). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| rubyonrails | rails | < 5.2.4.6 |
| rubyonrails | rails | ≥ 5.2.5 < 5.2.6 |
| rubyonrails | rails | ≥ 6.0.0 < 6.0.3.7 |
| rubyonrails | rails | ≥ 6.1.0 < 6.1.3.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- discuss.rubyonrails.org Exploit Mitigation Patch
- hackerone.com Permissions Required Third Party Advisory
- security.netapp.com Third Party Advisory