PT-2024-21182 · Xhtml2Pdf+1 · Xhtml2Pdf+1

·

CVE-2024-25885

·

Published

2024-10-08

·

Updated

2026-07-07

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions xhtml2pdf version 0.2.13
Description The issue allows attackers to cause a Regular expression Denial of Service (ReDOS) via supplying a crafted string to the getcolor function in utils.py. This can be exploited by providing a specifically designed input.
Recommendations For xhtml2pdf version 0.2.13, consider disabling the getcolor function in utils.py until a patch is available to prevent potential ReDOS attacks. Restrict the input to the getcolor function to minimize the risk of exploitation.

Fix

DoS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-25885
GHSA-JJ5C-HHRG-VV5H
OPENSUSE-SU-2024:14601-1
PYSEC-2026-2056

Affected Products

Debian
Xhtml2Pdf