CVE-2024-47887
Action Controller has possible ReDoS vulnerability in HTTP Token authentication
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
Action Pack is a framework for handling and responding to web requests. Starting in version 4.0.0 and prior to versions 6.1.7.9, 7.0.8.5, 7.1.4.1, and 7.2.1.1, there is a possible ReDoS vulnerability in Action Controller's HTTP Token authentication. For applications using HTTP Token authentication via `authenticate_or_request_with_http_token` or similar, a carefully crafted header may cause header parsing to take an unexpected amount of time, possibly resulting in a DoS vulnerability. All users running an affected release should either upgrade to versions 6.1.7.9, 7.0.8.5, 7.1.4.1, or 7.2.1.1 or apply the relevant patch immediately. One may choose to use Ruby 3.2 as a workaround.Ruby 3.2 has mitigations for this problem, so Rails applications using Ruby 3.2 or newer are unaffected. Rails 8.0.0.beta1 depends on Ruby 3.2 or greater so is unaffected.
Action Pack es un framework de trabajo para gestionar y responder a solicitudes web. A partir de la versión 4.0.0 y anteriores a las versiones 6.1.7.9, 7.0.8.5, 7.1.4.1 y 7.2.1.1, existe una posible vulnerabilidad de ReDoS en la autenticación de token HTTP de Action Controller. En el caso de las aplicaciones que utilizan la autenticación de token HTTP mediante `authenticate_or_request_with_http_token` o similar, un encabezado cuidadosamente diseñado puede provocar que el análisis del encabezado tarde una cantidad inesperada de tiempo, lo que posiblemente resulte en una vulnerabilidad de DoS. Todos los usuarios que ejecuten una versión afectada deben actualizar a las versiones 6.1.7.9, 7.0.8.5, 7.1.4.1 o 7.2.1.1 o aplicar el parche correspondiente de inmediato. Se puede optar por utilizar Ruby 3.2 como workaround. Ruby 3.2 tiene mitigaciones para este problema, por lo que las aplicaciones Rails que utilizan Ruby 3.2 o versiones más nuevas no se ven afectadas. Rails 8.0.0.beta1 depende de Ruby 3.2 o superior, por lo que no se ve afectado.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2024-10-04 CVE Reserved
- 2024-10-16 CVE Published
- 2024-10-17 CVE Updated
- 2024-10-17 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-1333: Inefficient Regular Expression Complexity
CAPEC
References (5)
URL | Tag | Source |
---|---|---|
https://github.com/rails/rails/commit/56b2fc3302836405b496e196a8d5fc0195e55049 | X_refsource_misc | |
https://github.com/rails/rails/commit/7c1398854d51f9bb193fb79f226647351133d08a | X_refsource_misc | |
https://github.com/rails/rails/commit/8e057db25bff1dc7a98e9ae72e0083825b9ac545 | X_refsource_misc | |
https://github.com/rails/rails/commit/f4dc83d8926509d0958ec21fcdbc2e7df3d32ce2 | X_refsource_misc | |
https://github.com/rails/rails/security/advisories/GHSA-vfg9-r3fq-jvx4 | X_refsource_confirm |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Rails Search vendor "Rails" | Rails Search vendor "Rails" for product "Rails" | >= 4.0.0.0 < 6.1.7.9 Search vendor "Rails" for product "Rails" and version " >= 4.0.0.0 < 6.1.7.9" | en |
Affected
| ||||||
Rails Search vendor "Rails" | Rails Search vendor "Rails" for product "Rails" | >= 7.0.0.0 < 7.0.8.5 Search vendor "Rails" for product "Rails" and version " >= 7.0.0.0 < 7.0.8.5" | en |
Affected
| ||||||
Rails Search vendor "Rails" | Rails Search vendor "Rails" for product "Rails" | >= 7.1.0.0 < 7.1.4.1 Search vendor "Rails" for product "Rails" and version " >= 7.1.0.0 < 7.1.4.1" | en |
Affected
| ||||||
Rails Search vendor "Rails" | Rails Search vendor "Rails" for product "Rails" | >= 7.2.0.0 < 7.2.1.1 Search vendor "Rails" for product "Rails" and version " >= 7.2.0.0 < 7.2.1.1" | en |
Affected
|