
CVE catalog
CVE-2024-25885
xhtml2pdf: CVE-2024-25885
- Severity
- Medium · CVSS 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.64% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | xhtml2pdf | sid | 0.2.17+dfsg-1 | fixed |
| Debian | xhtml2pdf | forky | 0.2.17+dfsg-1 | fixed |
| Debian | xhtml2pdf | trixie | 0.2.17+dfsg-1 | fixed |
| Debian | xhtml2pdf | bookworm | 0.2.5-3 | vulnerable |
| Opensuse | python-xhtml2pdf | tumbleweed | 0.2.16-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | xhtml2pdf | source | sid | 0.2.16+dfsg-1 | not yet assigned | Not reported | [1084986] |
| Debian | xhtml2pdf | source | forky | 0.2.16+dfsg-1 | not yet assigned | Not reported | [1084986] |
| Debian | xhtml2pdf | source | trixie | 0.2.16+dfsg-1 | not yet assigned | Not reported | [1084986] |
| Debian | xhtml2pdf | source | bookworm | (unfixed) | not yet assigned | Not reported | [1084986] |
| Opensuse | python-xhtml2pdf | rpm | tumbleweed | 0.2.16-2.1 | Not reported | OPENSUSE-SU-2024:14601-1 | Not reported |
Notes
[bookworm] xhtml2pdf: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-xhtml2pdf]Affected
Source package: [xhtml2pdf]
Details (2)
0.2.5-3· all · bookwormAffected
dsa · xhtml2pdf · debian · bookworm; dsa · xhtml2pdf · debian · 12
0.2.5-3· all · bookwormAffected
dsa · xhtml2pdf · debian · bookworm; dsa · xhtml2pdf · debian · 12
[openSUSE Tumbleweed]
- [python313-xhtml2pdf]Unknown
Source package: [python-xhtml2pdf]
Details (1)
0.2.17-2.4· noarch · tumbleweedUnknown · Fixed:
0.2.16-2.1Version impact unknown
dsa · python-xhtml2pdf · opensuse · tumbleweed
- [python314-xhtml2pdf]Unknown
Source package: [python-xhtml2pdf]
Details (1)
0.2.17-2.4· noarch · tumbleweedUnknown · Fixed:
0.2.16-2.1Version impact unknown
dsa · python-xhtml2pdf · opensuse · tumbleweed
[Debian 13 (Trixie)]
- [python3-xhtml2pdf]Fixed
Source package: [xhtml2pdf]
Details (2)
0.2.17+dfsg-1· all · trixieFixed · Fixed:
0.2.16+dfsg-1dsa · xhtml2pdf · debian · 13
0.2.17+dfsg-1· all · trixieFixed · Fixed:
0.2.16+dfsg-1dsa · xhtml2pdf · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_14601-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-25885]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:14601-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-25885]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-25885.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]