CVE Vulnerabilities

CVE-2024-25885

Inefficient Regular Expression Complexity

Published: Oct 08, 2024 | Modified: Jul 05, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
4.3 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

An issue in the getcolor function in utils.py of xhtml2pdf v0.2.13 allows attackers to cause a Regular expression Denial of Service (ReDOS) via supplying a crafted string.

Weakness

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Affected Software

NameVendorStart VersionEnd Version
Xhtml2pdfUbuntufocal*
Xhtml2pdfUbuntuoracular*
Xhtml2pdfUbuntuplucky*
Xhtml2pdfUbuntuquesting*

Potential Mitigations

References