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

EcosystemPackageFixed inAdvisory
Debian:12xhtml2pdfno fix listedDEBIAN-CVE-2024-25885
Debian:13xhtml2pdf0.2.16+dfsg-1DEBIAN-CVE-2024-25885
Debian:14xhtml2pdf0.2.16+dfsg-1DEBIAN-CVE-2024-25885
PyPIxhtml2pdfno fix listedGHSA-jj5c-hhrg-vv5h
PyPIxhtml2pdfno fix listedPYSEC-2026-2056
Ubuntu:22.04:LTSxhtml2pdfno fix listedUBUNTU-CVE-2024-25885
Ubuntu:24.04:LTSxhtml2pdfno fix listedUBUNTU-CVE-2024-25885
Ubuntu:25.10xhtml2pdfno fix listedUBUNTU-CVE-2024-25885
Ubuntu:26.04:LTSxhtml2pdfno fix listedUBUNTU-CVE-2024-25885
Ubuntu:26.10xhtml2pdfno fix listedUBUNTU-CVE-2024-25885

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References