CVE-2024-22640: TCPDF · ReDoS
Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 1.3% chance of exploitation in 30 days – higher than 70% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 19 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Monitor TCPDF project repositories and security advisories for official patches addressing CVE-2024-22640 and apply updates promptly once available.
- In the interim, implement strict input validation and sanitization to reject or neutralize suspicious or malformed color attributes in HTML content before processing.
- Employ rate limiting and request throttling on endpoints that accept HTML input to reduce the risk of resource exhaustion from repeated exploit attempts.
- Consider isolating PDF generation services in separate containers or sandboxed environments to limit the impact of potential denial of service.
- Use Web Application Firewalls (WAFs) with custom rules to detect and block suspicious payloads targeting the vulnerable regex patterns if signatures become available.
- Audit and restrict access to PDF generation functionality to trusted users or internal systems where feasible.
- Conduct performance monitoring and alerting on CPU usage spikes in services utilizing TCPDF to enable rapid detection of exploitation attempts.
- Review and update incident response plans to include scenarios involving ReDoS attacks on document generation services.
Description
TCPDF version <=6.6.5 is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing an untrusted HTML page with a crafted color.
References
- github.com/tecnickcom/TCPDF (opens in a new tab)
- github.com/zunak/CVE-2024-22640 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LIB3R2WB7XPW2I4PGVMZ3VLFLRHOK4RB/ (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/06/msg00004.html (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LIB3R2WB7XPW2I4PGVMZ3VLFLRHOK4RB/ (opens in a new tab)