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

High 7.5 Published Updated

Attackers can cause denial of service in TCPDF by providing crafted HTML with malicious color values, affecting applications using this library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-22640?

CVE-2024-22640 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 19 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1333

Which versions are affected by CVE-2024-22640?

2 open source packages ship an affected version, including tecnickcom/tcpdf. It affects 2 products.

PackageAffectedFixed in
tecnickcom/tcpdf PackagistAll versions6.7.5
tecnickcom/tcpdf PackagistAll versions6.7.5

Products include Fedoraproject Fedora, Tcpdf Project Tcpdf.

How do I fix CVE-2024-22640?

Upgrade tecnickcom/tcpdf to 6.7.5 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-22640 being exploited?

There is no known exploitation of CVE-2024-22640 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2024-22640, GHSA-mx3p-fhpw-x6rv, MGASA-2024-0169, UBUNTU-CVE-2024-22640.

Is CVE-2024-22640 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free