Skip to content
OpenAdvisories
High · 7.5 CVE-2024-25885 EUVD-2024-3070GHSA-jj5c-hhrg-vv5hPYSEC-2026-2056

xhtml2pdf Denial of Service via crafted string

Published Oct 8, 2024 · Updated Jul 5, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 xhtml2pdf 0.2.16+dfsg-1 —
Debian 13 xhtml2pdf 0.2.16+dfsg-1 —
Debian 12 xhtml2pdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 xhtml2pdf No fix yet —
Ubuntu 26.04 LTS xhtml2pdf No fix yet —
Ubuntu 25.10 xhtml2pdf No fix yet —
Ubuntu 24.04 LTS xhtml2pdf No fix yet —
Ubuntu 22.04 LTS xhtml2pdf No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS xhtml2pdf No fix yet —
Ubuntu 18.04 LTS xhtml2pdf No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-xhtml2pdf 0.2.16-2.1 openSUSE-SU-2024:14601-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI xhtml2pdf <= 0.2.16 — GHSA-jj5c-hhrg-vv5h

Advisories 1

References