CVE-2024-22640: TCPDF vulnerable to Regular Expression Denial of Service
TCPDF version <= 6.7.4 is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing an untrusted HTML page with a crafted color.
Other sources
TCPDF version <=6.6.5 is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing an untrusted HTML page with a crafted color.
— NVD
TCPDF vulnerable to Regular Expression Denial of Service
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/tecnickcom/tcpdfto a version that resolves this vulnerability.Fixed in 6.7.5 - Upgrade
Upgrade
debian/tcpdfto a version that resolves this vulnerability.Fixed in 6.6.2+dfsg1-1+deb12u1 - Upgrade
Upgrade
debian/tcpdfto a version that resolves this vulnerability.Fixed in 6.7.5+dfsg-1 - Upgrade
Upgrade
debian/tcpdfto a version that resolves this vulnerability.Fixed in 6.3.5+dfsg1-1+deb11u1Fixed in 6.6.2+dfsg1-1+deb12u1Fixed in 6.7.5+dfsg-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-22640?
CVE-2024-22640 has a medium severity rating due to its potential for causing a ReDoS attack.
How do I fix CVE-2024-22640?
To fix CVE-2024-22640, upgrade to TCPDF version 6.7.5 or later.
Which versions of TCPDF are affected by CVE-2024-22640?
TCPDF versions 6.7.4 and earlier are vulnerable to CVE-2024-22640.
What type of attack is associated with CVE-2024-22640?
CVE-2024-22640 is associated with Regular Expression Denial of Service (ReDoS) attacks.
What should I do if I cannot upgrade to TCPDF 6.7.5 to mitigate CVE-2024-22640?
If you cannot upgrade, avoid parsing untrusted HTML pages with crafted colors to minimize risk from CVE-2024-22640.