CVE-2024-25885: xhtml2pdf Denial of Service via crafted string
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54255%
CWE
Published
10/8/2024
Updated
10/9/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| xhtml2pdf | pip | <= 0.2.16 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- All vulnerability descriptions explicitly mention the getcolor function in utils.py as the source of ReDoS.
- The PoC demonstrates exploitation through color parameter manipulation handled by this function.
- CWE-1333 directly implicates regex inefficiency in color parsing logic.
- No other functions are referenced in advisories or PoC details. The path normalization matches Python package structure (xhtml2pdf/util.py).