{"id":"UBUNTU-CVE-2024-25885","details":"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.","modified":"2026-05-20T16:16:38.988208822Z","published":"2024-10-08T18:15:00Z","upstream":["CVE-2024-25885"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-25885"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-25885"},{"type":"REPORT","url":"https://gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206"}],"affected":[{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2b-1","0.2b-2","0.2.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.1-1","binary_name":"python-xhtml2pdf"},{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.2-3","0.2.2-3build1","0.2.2-5","0.2.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.4-1","binary_name":"python3-xhtml2pdf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.4-1","0.2.4-1ubuntu1","0.2.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.5-3","0.2.5-5"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.5-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.17+dfsg-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu1","0.2.17+dfsg-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.17+dfsg-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}