High
xhtml2pdf — security advisory
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.
- Products
- xhtml2pdf
- Affected versions
- 0.2.1-1, 0.2.17+dfsg-1ubuntu1, 0.2.17+dfsg-1ubuntu2, 0.2.2-3, 0.2.2-3build1, 0.2.2-5, 0.2.4-1, 0.2.4-1ubuntu1, 0.2.5-1, 0.2.5-3, 0.2.5-5, 0.2b-1, 0.2b-2
- Fixed versions
- Not specified
- CVEs
- CVE-2024-25885
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:12 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2024-25885
xhtml2pdf
Fixed versions: Not specified
xhtml2pdf
Fixed versions: Not specified
xhtml2pdf
Fixed versions: Not specified
xhtml2pdf
Fixed versions: Not specified
xhtml2pdf
Fixed versions: Not specified
xhtml2pdf
Fixed versions: Not specified
xhtml2pdf
Fixed versions: Not specified
Complete source record
{
"id": "610ef602c91edd00b247d83942d62aa6bf600cc03f5985a3375dbce7e25eed31",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-25885",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-25885",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2024-25885",
"products": [
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2b-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.2b-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.2.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2.2-3",
"evidence": "/affected/1/versions"
},
{
"value": "0.2.2-3build1",
"evidence": "/affected/1/versions"
},
{
"value": "0.2.2-5",
"evidence": "/affected/1/versions"
},
{
"value": "0.2.4-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2.4-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.2.4-1ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "0.2.5-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2.5-3",
"evidence": "/affected/3/versions"
},
{
"value": "0.2.5-5",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2.17+dfsg-1ubuntu1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2.17+dfsg-1ubuntu2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "xhtml2pdf",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.2.17+dfsg-1ubuntu1",
"evidence": "/affected/6/versions"
},
{
"value": "0.2.17+dfsg-1ubuntu2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2024-25885",
"aliases": [
"UBUNTU-CVE-2024-25885"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.2b-1",
"0.2b-2",
"0.2.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-xhtml2pdf",
"binary_version": "0.2.1-1"
},
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.2.2-3",
"0.2.2-3build1",
"0.2.2-5",
"0.2.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.4-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.2.4-1",
"0.2.4-1ubuntu1",
"0.2.5-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.5-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.2.5-3",
"0.2.5-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25885.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.5-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.17+dfsg-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.17+dfsg-1ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "xhtml2pdf",
"purl": "pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.2.17+dfsg-1ubuntu1",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-xhtml2pdf",
"binary_version": "0.2.17+dfsg-1ubuntu2"
}
]
}
}
],
"modified": "2026-10-17T12:56:43.412883782Z",
"provider": "osv",
"upstream": [
"CVE-2024-25885"
],
"references": [
"https://ubuntu.com/security/CVE-2024-25885",
"https://www.cve.org/CVERecord?id=CVE-2024-25885",
"https://gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206"
]
},
"related_cves": [
{
"value": "CVE-2024-25885",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356052,
"published_at": "2024-10-08T18:15:00+00:00"
}