CVE-2024-22640: TCPDF vulnerable to Regular Expression Denial of Service

Published Apr 19, 2024
·
Updated

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

14 affected componentsFixes available
composer/tecnickcom/tcpdf<=6.7.4
6.7.5
Tcpdf Project Tcpdf<=6.7.4
Fedoraproject Fedora=40
composer/tecnickcom/tcpdf<=6.7.4
debian/tcpdf<6.6.2+dfsg1-1+deb12u1
6.6.2+dfsg1-1+deb12u1
debian/tcpdf<6.7.5+dfsg-1
6.7.5+dfsg-1
debian/tcpdf<6.7.5+dfsg-1
6.7.5+dfsg-1
debian/tcpdf
6.3.5+dfsg1-1+deb11u16.6.2+dfsg1-1+deb12u16.7.5+dfsg-1
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/tecnickcom/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.7.5
  2. Upgrade

    Upgrade debian/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.6.2+dfsg1-1+deb12u1
  3. Upgrade

    Upgrade debian/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.7.5+dfsg-1
  4. Upgrade

    Upgrade debian/tcpdf to 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

Apr 1, 2024
Exploit Published
via GitHub·03:43 PM
Apr 19, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 PM
Description
Data Sourced
via Red Hat·05:01 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·06:31 PM
Data Sourced
via GitHub·06:31 PM
DescriptionWeaknessAffected Software
Data Sourced
via Packagist·06:31 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·07:49 PM
Jun 11, 2024
Updated
via GitHub·08:59 PM
DescriptionAffected Software
Jul 3, 2024
Data Sourced
via NVD·01:47 AM
SeverityWeakness
May 21, 2025
Data Sourced
via NVD·06:09 PM
Affected Software
Nov 3, 2025
Updated
via NVD·08:16 PM
Affected Software
Dec 3, 2026
Updated
via OSV·08:48 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2024-22640?

To fix CVE-2024-22640, upgrade to TCPDF version 6.7.5 or later.

3

Which versions of TCPDF are affected by CVE-2024-22640?

TCPDF versions 6.7.4 and earlier are vulnerable to CVE-2024-22640.

4

What type of attack is associated with CVE-2024-22640?

CVE-2024-22640 is associated with Regular Expression Denial of Service (ReDoS) attacks.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203