Skip to main content

Inefficient Regular Expression Complexity

CVE-2023-22795

Severity High
Score 7.5/10

Summary

A regular expression based DoS vulnerability in Action Dispatch related to the "If-None-Match" header. This vulnerability affects versions through 5.2.8.1, 6.x through 6.1.7, and 7.x through 7.0.4. A specially crafted HTTP "If-None-Match" header can cause the regular expression engine to enter a state of catastrophic backtracking, when on a version of Ruby below 3.2.0. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability. All users running an affected release should either upgrade or use one of the workarounds immediately.

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

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