Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-22641: n/a

0
High
VulnerabilityCVE-2024-22641cvecve-2024-22641
Published: Tue May 28 2024 (05/28/2024, 20:17:22 UTC)
Source: CVE Database V5

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

AILast updated: 11/03/2025, 19:47:07 UTC

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.

Need more detailed analysis?Get Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats