CVE-2024-25885

xhtml2pdf: ReDoS via getcolor function in utils.py

Published Oct 8, 2024 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jj5c-hhrg-vv5h xhtml2pdf Denial of Service via crafted string
History
Type Values Removed Values Added
Title xhtml2pdf: From NVD collector xhtml2pdf: ReDoS via getcolor function in utils.py
Type Values Removed Values Added
First Time appeared Xhtml2pdf
Xhtml2pdf xhtml2pdf
Weaknesses CWE-1333
CPEs cpe:2.3:a:xhtml2pdf:xhtml2pdf:*:*:*:*:*:*:*:*
Vendors & Products Xhtml2pdf
Xhtml2pdf xhtml2pdf
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title xhtml2pdf: From NVD collector
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 5, 2026, 4:04 PM
Reserved
Feb 12, 2024, 12:00 AM
Status
Deferred
Published
Oct 8, 2024, 6:15 PM
Modified
Jul 5, 2026, 4:18 PM
Severity
Moderate
Public date
Oct 8, 2024, 6:15 PM