CVE-2024-25885
xhtml2pdf Denial of Service via crafted string
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
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.
- Record
CVE-2024-25885- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
EUVDEUVD-2024-3070
7.5
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.
- Record
EUVD-2024-3070- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-jj5c-hhrg-vv5h
5.5
xhtml2pdf Denial of Service via crafted string
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.
- Record
GHSA-jj5c-hhrg-vv5h- CVSS 4.0
- 5.5 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-1333
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2024-25885- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-25885
7.5
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.
- Record
DEBIAN-CVE-2024-25885- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-jj5c-hhrg-vv5h
5.5
xhtml2pdf Denial of Service via crafted string
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.
- Record
GHSA-jj5c-hhrg-vv5h- CVSS 4.0
- 5.5 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-1333
- Updated
- 2026-11-02
Show 4 moreShow less
OSVPYSEC-2026-2056
5.5
xhtml2pdf Denial of Service via crafted string
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.
- Record
PYSEC-2026-2056- CVSS 4.0
- 5.5 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-25885
7.5
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.
- Record
UBUNTU-CVE-2024-25885- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2024-25885- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14601-1 No score
python310-xhtml2pdf-0.2.16-2.1 on GA media
These are all security issues fixed in the python310-xhtml2pdf-0.2.16-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14601-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
xhtml2pdfPyPI |
through 0.2.16 | None known |
xhtml2pdfDebian:12 |
All versions, plus listed versions 0.2.15+dfsg-10.2.15+dfsg-20.2.16+dfsg-10.2.17+dfsg-10.2.5-30.2.5-40.2.5-5 |
None known |
xhtml2pdfDebian:13 |
before 0.2.16+dfsg-1 | 0.2.16+dfsg-1 |
xhtml2pdfDebian:14 |
before 0.2.16+dfsg-1 | 0.2.16+dfsg-1 |
xhtml2pdfPyPI |
through 0.2.16, plus listed versions 0.0.00.0.10.0.20.0.30.0.4 Show 26 moreShow less0.0.50.0.60.1a10.1a20.1a30.1a40.1b10.1b20.1b30.20.2.10.2.100.2.110.2.120.2.130.2.140.2.150.2.20.2.30.2.40.2.50.2.60.2.70.2.80.2.90.2b1 |
None known |
xhtml2pdfUbuntu:18.04:LTS |
All versions, plus listed versions 0.2b-10.2b-20.2.1-1 |
None known |
xhtml2pdfUbuntu:20.04:LTS |
All versions, plus listed versions 0.2.2-30.2.2-3build10.2.2-50.2.4-1 |
None known |
xhtml2pdfUbuntu:22.04:LTS |
All versions, plus listed versions 0.2.4-10.2.4-1ubuntu10.2.5-1 |
None known |
xhtml2pdfUbuntu:24.04:LTS |
All versions, plus listed versions 0.2.5-30.2.5-5 |
None known |
xhtml2pdfUbuntu:25.10 |
All versions, plus listed versions 0.2.17+dfsg-1ubuntu1 |
None known |
xhtml2pdfUbuntu:26.10 |
All versions, plus listed versions 0.2.17+dfsg-1ubuntu2 |
None known |
xhtml2pdfUbuntu:26.04:LTS |
All versions, plus listed versions 0.2.17+dfsg-1ubuntu10.2.17+dfsg-1ubuntu2 |
None known |
python-xhtml2pdfopenSUSE:Tumbleweed |
before 0.2.16-2.1 | 0.2.16-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-25885 is a high vulnerability (CVSS 7.5) in Xhtml2pdf, published October 8, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.64%, the 51st percentile. Fixed in xhtml2pdf 0.2.16+dfsg-1.