Skip to main content

Inefficient Regular Expression Complexity

CVE-2024-25885

Severity High
Score 7.5/10

Summary

An issue in the "getcolor" function in "utils.py" of xhtml2pdf allows attackers to cause a Regular expression Denial of Service (ReDOS) by supplying a crafted string. This issue affects version prior to 0.2.17.

  • 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