CVE-2024-56522 TCPDF has incorrect comparison
An attacker can bypass TCPDF tag hash verification due to insecure loose comparison, potentially compromising document integrity.
- 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-56522?
CVE-2024-56522 is a high-severity vulnerability in tecnick tcpdf, published on 27 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in TCPDF before 6.8.0. unserializeTCPDFtag uses != (aka loose comparison) and does not use a constant-time function to compare TCPDF tag hashes.
Weakness: CWE-843
Which versions are affected by CVE-2024-56522?
2 open source packages ship an affected version, including tecnickcom/tcpdf. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tecnickcom/tcpdf Packagist | All versions | 6.8.0 |
tecnickcom/tcpdf Packagist | All versions | 6.8.0 |
Products include Tcpdf Project Tcpdf.
How do I fix CVE-2024-56522?
Upgrade tecnickcom/tcpdf to 6.8.0 or later.
Is CVE-2024-56522 being exploited?
There is no known exploitation of CVE-2024-56522 in the wild and no public exploit code.
Other vulnerabilities in tecnick tcpdf
Sources
Also known as DEBIAN-CVE-2024-56522, GHSA-w95c-7994-ghpr, UBUNTU-CVE-2024-56522.