Skip to main content

Inefficient Regular Expression Complexity

CVE-2024-49761

Severity High
Score 7.5/10

Summary

REXML is an XML toolkit for Ruby. The REXML gem versions prior to 3.3.9 have a ReDoS vulnerability when it parses an XML that has many digits between "&#" and "x...;" in a hex numeric character reference ("&#x...;"). This does not happen with Ruby 3.2 or later. Ruby 3.1 is the only affected maintained Ruby.

  • 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