| Name | CVE-2024-25885 | 
| 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. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| Debian Bugs | 1084986 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| xhtml2pdf (PTS) | bullseye | 0.2.4-1 | vulnerable | 
 | bookworm | 0.2.5-3 | vulnerable | 
 | forky, sid, trixie | 0.2.17+dfsg-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| xhtml2pdf | source | (unstable) | 0.2.16+dfsg-1 |  |  | 1084986 | 
Notes
[bookworm] - xhtml2pdf <ignored> (Minor issue)
[bullseye] - xhtml2pdf <postponed> (Minor issue; can be fixed in next update)
https://gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206
https://github.com/xhtml2pdf/xhtml2pdf/issues/783
https://github.com/xhtml2pdf/xhtml2pdf/pull/784
https://github.com/xhtml2pdf/xhtml2pdf/commit/1346cb39a06307f256c921938b887b525009a996