Skip to main content

Inefficient Regular Expression Complexity

CVE-2024-47887

Severity Low
Score 3.7/10

Summary

Action Pack is a framework for handling and responding to web requests. There is a possible ReDoS vulnerability in the 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 Denial of Service (DoS) vulnerability. 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 it is unaffected. This issue affects actionpack versions 4.0.0.beta1 through 6.1.7.8, 7.0.0.alpha1 through 7.0.8.4, 7.1.0.beta1 through 7.1.4, and 7.2.0.beta1 through 7.2.1.

  • HIGH
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • LOW

CWE-1333 - Inefficient Regular Expression Complexity

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Advisory Timeline

  • Published