CVE-2024-22641: n/a
TCPDF version 6.6.5 and before is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing an untrusted SVG file.
AI Analysis
Technical Summary
CVE-2024-22641 is a vulnerability in TCPDF, a widely used PHP library for generating PDF documents, specifically versions 6.6.5 and earlier. The issue arises from the library's handling of SVG files embedded or parsed during PDF generation. TCPDF uses regular expressions to process SVG content, but certain crafted SVG inputs can trigger catastrophic backtracking in these regular expressions, causing excessive CPU consumption and effectively resulting in a denial of service (ReDoS). This vulnerability is exploitable remotely without any authentication or user interaction, as it only requires an attacker to submit a malicious SVG file to an application that uses TCPDF for PDF generation. The vulnerability is classified under CWE-434 (Unrestricted Upload of File with Dangerous Type), highlighting the risk of processing untrusted file inputs. The CVSS v3.1 score is 7.5 (high), reflecting the ease of exploitation and the significant impact on availability, although confidentiality and integrity are not compromised. No patches or official fixes have been released yet, and no active exploitation has been reported. The vulnerability primarily affects web applications and services that accept user-uploaded SVG files or otherwise process SVG content through TCPDF, which is common in document management, reporting, and e-commerce platforms.
Potential Impact
For European organizations, this vulnerability poses a significant risk to service availability, particularly for those relying on TCPDF for dynamic PDF generation involving SVG content. Denial of service attacks exploiting this vulnerability could disrupt business operations, degrade user experience, and cause downtime in critical document processing workflows. Sectors such as finance, healthcare, government, and e-commerce, which often generate PDF reports or invoices dynamically, may face operational interruptions. The impact is amplified in environments where SVG uploads are allowed without strict validation or sanitization. While the vulnerability does not directly compromise data confidentiality or integrity, the resulting service outages could indirectly affect business continuity and trust. Additionally, organizations with compliance obligations around uptime and service availability (e.g., under GDPR or sector-specific regulations) may face regulatory scrutiny if disruptions occur. The lack of known exploits provides a window for proactive mitigation, but the ease of exploitation and remote attack vector necessitate urgent attention.
Mitigation Recommendations
1. Immediately audit all applications using TCPDF to identify if SVG parsing is enabled or if untrusted SVG files are accepted. 2. Implement strict input validation and sanitization for SVG files before processing, using libraries designed to safely parse and clean SVG content. 3. Employ rate limiting and request throttling on endpoints that accept file uploads to reduce the risk of resource exhaustion. 4. Monitor CPU and memory usage patterns for anomalies indicative of ReDoS attacks, and establish alerting mechanisms. 5. Where feasible, disable SVG support in TCPDF or replace SVG inputs with safer image formats. 6. Stay updated with TCPDF releases and apply patches as soon as they become available. 7. Consider deploying Web Application Firewalls (WAFs) with rules to detect and block malicious SVG payloads. 8. Conduct regular security testing, including fuzzing and static analysis, to detect similar vulnerabilities in custom code handling SVG or PDF generation.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Poland, Sweden
CVE-2024-22641: n/a
Description
TCPDF version 6.6.5 and before is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing an untrusted SVG file.
AI-Powered Analysis
Technical Analysis
CVE-2024-22641 is a vulnerability in TCPDF, a widely used PHP library for generating PDF documents, specifically versions 6.6.5 and earlier. The issue arises from the library's handling of SVG files embedded or parsed during PDF generation. TCPDF uses regular expressions to process SVG content, but certain crafted SVG inputs can trigger catastrophic backtracking in these regular expressions, causing excessive CPU consumption and effectively resulting in a denial of service (ReDoS). This vulnerability is exploitable remotely without any authentication or user interaction, as it only requires an attacker to submit a malicious SVG file to an application that uses TCPDF for PDF generation. The vulnerability is classified under CWE-434 (Unrestricted Upload of File with Dangerous Type), highlighting the risk of processing untrusted file inputs. The CVSS v3.1 score is 7.5 (high), reflecting the ease of exploitation and the significant impact on availability, although confidentiality and integrity are not compromised. No patches or official fixes have been released yet, and no active exploitation has been reported. The vulnerability primarily affects web applications and services that accept user-uploaded SVG files or otherwise process SVG content through TCPDF, which is common in document management, reporting, and e-commerce platforms.
Potential Impact
For European organizations, this vulnerability poses a significant risk to service availability, particularly for those relying on TCPDF for dynamic PDF generation involving SVG content. Denial of service attacks exploiting this vulnerability could disrupt business operations, degrade user experience, and cause downtime in critical document processing workflows. Sectors such as finance, healthcare, government, and e-commerce, which often generate PDF reports or invoices dynamically, may face operational interruptions. The impact is amplified in environments where SVG uploads are allowed without strict validation or sanitization. While the vulnerability does not directly compromise data confidentiality or integrity, the resulting service outages could indirectly affect business continuity and trust. Additionally, organizations with compliance obligations around uptime and service availability (e.g., under GDPR or sector-specific regulations) may face regulatory scrutiny if disruptions occur. The lack of known exploits provides a window for proactive mitigation, but the ease of exploitation and remote attack vector necessitate urgent attention.
Mitigation Recommendations
1. Immediately audit all applications using TCPDF to identify if SVG parsing is enabled or if untrusted SVG files are accepted. 2. Implement strict input validation and sanitization for SVG files before processing, using libraries designed to safely parse and clean SVG content. 3. Employ rate limiting and request throttling on endpoints that accept file uploads to reduce the risk of resource exhaustion. 4. Monitor CPU and memory usage patterns for anomalies indicative of ReDoS attacks, and establish alerting mechanisms. 5. Where feasible, disable SVG support in TCPDF or replace SVG inputs with safer image formats. 6. Stay updated with TCPDF releases and apply patches as soon as they become available. 7. Consider deploying Web Application Firewalls (WAFs) with rules to detect and block malicious SVG payloads. 8. Conduct regular security testing, including fuzzing and static analysis, to detect similar vulnerabilities in custom code handling SVG or PDF generation.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
 - 5.2
 - Assigner Short Name
 - mitre
 - Date Reserved
 - 2024-01-11T00:00:00.000Z
 - Cvss Version
 - 3.1
 - State
 - PUBLISHED
 
Threat ID: 690904b000ff46172d4a0e32
Added to database: 11/3/2025, 7:38:24 PM
Last enriched: 11/3/2025, 7:47:07 PM
Last updated: 11/3/2025, 9:51:13 PM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-11193: CWE-256: Plaintext Storage of a Password in Lenovo Tab M11 TB330FU TB330XU
MediumCVE-2024-49761: CWE-1333: Inefficient Regular Expression Complexity in ruby rexml
MediumCVE-2024-48910: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in cure53 DOMPurify
CriticalCVE-2024-45802: CWE-20: Improper Input Validation in squid-cache squid
HighCVE-2024-45239: n/a
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.