CVE-2024-25885 json
xhtml2pdf Denial of Service via crafted string
published 2024-10-08 2 y ago modified 2026-07-07 4 mo ago also GHSA-jj5c-hhrg-vv5h , PYSEC-2026-2056 , EUVD-2024-3070
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- xhtml2pdf Debian 14, Debian 13 0.2.16+dfsg-1
debian advisories DEBIAN-CVE-2024-25885
- python-xhtml2pdf openSUSE Tumbleweed 0.2.16-2.1
opensuse advisories openSUSE-SU-2024:14601-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-25885 updated cvss 4.3
xhtml2pdf: ReDoS via getcolor function in utils.py
-
Red Hat Quay 3 quay/quay-rhel8not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | xhtml2pdf | <=0.2.16 |
no fix listed |
Affected products
- xhtml2pdf xhtml2pdf
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
Sources
- CVE List CVE-2024-25885
- GitHub Advisory GHSA-jj5c-hhrg-vv5h
- NVD CVE-2024-25885
- OSV PYSEC-2026-2056
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.