Vulnerability · Published Oct 8, 2024 · Assigned by mitre
CVE-2024-25885
High 7.5
In plain English
A high-severity regular-expression denial of service in the xhtml2pdf package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 49.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | xhtml2pdf | no fix listed | DEBIAN-CVE-2024-25885 |
| Debian:13 | xhtml2pdf | 0.2.16+dfsg-1 | DEBIAN-CVE-2024-25885 |
| Debian:14 | xhtml2pdf | 0.2.16+dfsg-1 | DEBIAN-CVE-2024-25885 |
| PyPI | xhtml2pdf | no fix listed | GHSA-jj5c-hhrg-vv5h |
| PyPI | xhtml2pdf | no fix listed | PYSEC-2026-2056 |
| Ubuntu:22.04:LTS | xhtml2pdf | no fix listed | UBUNTU-CVE-2024-25885 |
| Ubuntu:24.04:LTS | xhtml2pdf | no fix listed | UBUNTU-CVE-2024-25885 |
| Ubuntu:25.10 | xhtml2pdf | no fix listed | UBUNTU-CVE-2024-25885 |
| Ubuntu:26.04:LTS | xhtml2pdf | no fix listed | UBUNTU-CVE-2024-25885 |
| Ubuntu:26.10 | xhtml2pdf | no fix listed | UBUNTU-CVE-2024-25885 |
Affected products (as reported)
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H