Every CVE Search/ Get API key

CVE-2024-25885

xhtml2pdf Denial of Service via crafted string

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

0.64%Up 0.6 points since Oct 9, 2024
90%50%10%1%

What each source reports

CVE List Score used 7.5

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.

Record
CVE-2024-25885
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
EUVDEUVD-2024-3070 7.5

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.

Record
EUVD-2024-3070
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-jj5c-hhrg-vv5h 5.5

xhtml2pdf Denial of Service via crafted string

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.

Record
GHSA-jj5c-hhrg-vv5h
CVSS 4.0
5.5 MediumCVSS: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
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness
CWE-1333
Updated
2026-11-02
NVD 7.5

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.

Record
CVE-2024-25885
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-1333
Updated
2026-11-02
OSVDEBIAN-CVE-2024-25885 7.5

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.

Record
DEBIAN-CVE-2024-25885
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVGHSA-jj5c-hhrg-vv5h 5.5

xhtml2pdf Denial of Service via crafted string

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.

Record
GHSA-jj5c-hhrg-vv5h
CVSS 4.0
5.5 MediumCVSS: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
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weakness
CWE-1333
Updated
2026-11-02
Show 4 moreShow less
OSVPYSEC-2026-2056 5.5

xhtml2pdf Denial of Service via crafted string

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.

Record
PYSEC-2026-2056
CVSS 4.0
5.5 MediumCVSS: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
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2024-25885 7.5

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.

Record
UBUNTU-CVE-2024-25885
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV No score

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.

Record
CVE-2024-25885
Updated
2026-11-02
OSVopenSUSE-SU-2024:14601-1 No score

python310-xhtml2pdf-0.2.16-2.1 on GA media

These are all security issues fixed in the python310-xhtml2pdf-0.2.16-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:14601-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
xhtml2pdf
PyPI
through 0.2.16 None known
xhtml2pdf
Debian:12
All versions, plus listed versions
0.2.15+dfsg-10.2.15+dfsg-20.2.16+dfsg-10.2.17+dfsg-10.2.5-30.2.5-40.2.5-5
None known
xhtml2pdf
Debian:13
before 0.2.16+dfsg-1
0.2.16+dfsg-1
xhtml2pdf
Debian:14
before 0.2.16+dfsg-1
0.2.16+dfsg-1
xhtml2pdf
PyPI
through 0.2.16, plus listed versions
0.0.00.0.10.0.20.0.30.0.4
Show 26 moreShow less
0.0.50.0.60.1a10.1a20.1a30.1a40.1b10.1b20.1b30.20.2.10.2.100.2.110.2.120.2.130.2.140.2.150.2.20.2.30.2.40.2.50.2.60.2.70.2.80.2.90.2b1
None known
xhtml2pdf
Ubuntu:18.04:LTS
All versions, plus listed versions
0.2b-10.2b-20.2.1-1
None known
xhtml2pdf
Ubuntu:20.04:LTS
All versions, plus listed versions
0.2.2-30.2.2-3build10.2.2-50.2.4-1
None known
xhtml2pdf
Ubuntu:22.04:LTS
All versions, plus listed versions
0.2.4-10.2.4-1ubuntu10.2.5-1
None known
xhtml2pdf
Ubuntu:24.04:LTS
All versions, plus listed versions
0.2.5-30.2.5-5
None known
xhtml2pdf
Ubuntu:25.10
All versions, plus listed versions
0.2.17+dfsg-1ubuntu1
None known
xhtml2pdf
Ubuntu:26.10
All versions, plus listed versions
0.2.17+dfsg-1ubuntu2
None known
xhtml2pdf
Ubuntu:26.04:LTS
All versions, plus listed versions
0.2.17+dfsg-1ubuntu10.2.17+dfsg-1ubuntu2
None known
python-xhtml2pdf
openSUSE:Tumbleweed
before 0.2.16-2.1
0.2.16-2.1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-25885 is a high vulnerability (CVSS 7.5) in Xhtml2pdf, published October 8, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.64%, the 51st percentile. Fixed in xhtml2pdf 0.2.16+dfsg-1.

References

Show 6 moreShow less
MoveEnter Open