CVE-2024-56527 TCPDF missing character escape on error messages
Attackers can inject malicious scripts via error messages in TCPDF due to missing output encoding, potentially leading to code execution.
- 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-56527?
CVE-2024-56527 is a high-severity cross-site scripting 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. The Error function lacks an htmlspecialchars call for the error message.
Weakness: CWE-79
Which versions are affected by CVE-2024-56527?
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-56527?
Upgrade tecnickcom/tcpdf to 6.8.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-56527 being exploited?
There is no known exploitation of CVE-2024-56527 in the wild and no public exploit code.
Other vulnerabilities in tecnick tcpdf
Sources
Also known as DEBIAN-CVE-2024-56527, GHSA-qx95-cwh6-9mvq, UBUNTU-CVE-2024-56527.