{"id":"CVE-2024-25885","aliases":["DEBIAN-CVE-2024-25885","EUVD-2024-3070","GHSA-jj5c-hhrg-vv5h","PYSEC-2026-2056","UBUNTU-CVE-2024-25885","openSUSE-SU-2024:14601-1"],"status":"published","title":"xhtml2pdf Denial of Service via crafted string","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.00642,"percentile":0.51268,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333"],"published":"2024-10-08T00:00:00Z","modified":"2026-11-02T12:01:38Z","fixes":[{"ecosystem":"Debian:13","package":"xhtml2pdf","fixed_in":["0.2.16+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"xhtml2pdf","fixed_in":["0.2.16+dfsg-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"python-xhtml2pdf","fixed_in":["0.2.16-2.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.2.16"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.15+dfsg-1","0.2.15+dfsg-2","0.2.16+dfsg-1","0.2.17+dfsg-1","0.2.5-3","0.2.5-4","0.2.5-5"]},{"source":"osv","ecosystem":"Debian:13","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.16+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.16+dfsg-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.2.16"}]}],"versions":["0.0.0","0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1a1","0.1a2","0.1a3","0.1a4","0.1b1","0.1b2","0.1b3","0.2","0.2.1","0.2.10","0.2.11","0.2.12","0.2.13","0.2.14","0.2.15","0.2.16","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.2b1"]},{"source":"osv","ecosystem":"PyPI","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.2.16"}]}],"versions":["0.0.0","0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.1a1","0.1a2","0.1a3","0.1a4","0.1b1","0.1b2","0.1b3","0.2","0.2.1","0.2.10","0.2.11","0.2.12","0.2.13","0.2.14","0.2.15","0.2.16","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.2b1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2b-1","0.2b-2","0.2.1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.2-3","0.2.2-3build1","0.2.2-5","0.2.4-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.4-1","0.2.4-1ubuntu1","0.2.5-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.5-3","0.2.5-5"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu1","0.2.17+dfsg-1ubuntu2"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-xhtml2pdf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.16-2.1"}]}]}],"products":[{"vendor":"xhtml2pdf","product":"xhtml2pdf"}],"references":[{"url":"https://gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206","tags":["web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25885","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jj5c-hhrg-vv5h","tags":["advisory"]},{"url":"http://dirk.com","tags":["web"]},{"url":"http://xhtml2pdf.com","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-25885","tags":["advisory"]},{"url":"https://github.com/xhtml2pdf/xhtml2pdf","tags":["package"]},{"url":"https://pypi.org/project/xhtml2pdf","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-25885","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-25885","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/QDGIB3NBVDX7EVVXG3PYE3OEEGUXWQDU/","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2024-25885","tags":["web"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2024-10-08T00:00:00Z","modified":"2026-07-05T16:04:09.105Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:34:04.341725Z"}],"euvd":[{"id":"EUVD-2024-3070","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.","status":"published","published":"2024-10-08T00:00:00Z","modified":"2026-07-05T16:04:09Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T18:20:14.2986Z"}],"ghsa":[{"id":"GHSA-jj5c-hhrg-vv5h","title":"xhtml2pdf Denial of Service via crafted string","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.","status":"published","published":"2024-10-08T18:33:14Z","modified":"2024-10-09T17:01:39Z","cvss":[{"version":"4.0","score":5.5,"vector":"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","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"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.","status":"published","published":"2024-10-08T18:15:05.423Z","modified":"2026-07-05T16:18:46.933Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:10:31.271525Z"}],"osv":[{"id":"DEBIAN-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.","status":"published","published":"2024-10-08T18:15:05.423Z","modified":"2026-11-02T12:01:38.592440948Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:41.849198Z"},{"id":"GHSA-jj5c-hhrg-vv5h","title":"xhtml2pdf Denial of Service via crafted string","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.","status":"published","published":"2024-10-08T18:33:14Z","modified":"2026-07-07T17:57:12.822310663Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"},{"version":"4.0","score":5.5,"vector":"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","level":"medium"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:46:50.687609Z"},{"id":"PYSEC-2026-2056","title":"xhtml2pdf Denial of Service via crafted string","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.","status":"published","published":"2026-07-07T14:34:42.774289Z","modified":"2026-07-07T17:48:17.621101873Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"},{"version":"4.0","score":5.5,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T15:52:55.537808Z"},{"id":"UBUNTU-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.","status":"published","published":"2024-10-08T18:15:00Z","modified":"2026-10-17T12:56:43.412883782Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:44.862765Z"},{"id":"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.","status":"published","published":"2024-10-08T18:15:05Z","modified":"2026-07-07T17:57:12.822310663Z","updated_at":"2026-11-02T15:44:39.244433Z"},{"id":"openSUSE-SU-2024:14601-1","title":"python310-xhtml2pdf-0.2.16-2.1 on GA media","description":"These are all security issues fixed in the python310-xhtml2pdf-0.2.16-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-12-18T00:00:00Z","modified":"2026-02-04T03:40:59.629668Z","updated_at":"2026-11-02T16:58:36.976155Z"}]}}
