Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. tecnickcom/tcpdf
  4. ›
  5. CVE-2024-22640

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

April 19, 2024 (updated November 4, 2025)

TCPDF version <= 6.7.4 is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing an untrusted HTML page with a crafted color.

References

  • github.com/advisories/GHSA-mx3p-fhpw-x6rv
  • github.com/tecnickcom/TCPDF
  • github.com/tecnickcom/TCPDF/commit/05f3a28f4a7905019469e040cf77e53d6aa7f679
  • github.com/zunak/CVE-2024-22640
  • lists.debian.org/debian-lts-announce/2025/06/msg00004.html
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LIB3R2WB7XPW2I4PGVMZ3VLFLRHOK4RB
  • nvd.nist.gov/vuln/detail/CVE-2024-22640

Code Behaviors & Features

Detect and mitigate CVE-2024-22640 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.7.5

Fixed versions

  • 6.7.5

Solution

Upgrade to version 6.7.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

packagist/tecnickcom/tcpdf/CVE-2024-22640.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:51 +0000.