CVE-2024-56520 tecnickcom/tc-lib-pdf-font mishandles fonts
Attackers can exploit mishandled font parsing in TCPDF to cause memory corruption, potentially leading to code execution or denial of service.
- 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-56520?
CVE-2024-56520 is a high-severity memory corruption 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 tc-lib-pdf-font before 2.6.4, as used in TCPDF before 6.8.0 and other products. Fonts are mishandled, e.g., FontBBox for Type 1 and TrueType fonts is misparsed.
Which versions are affected by CVE-2024-56520?
2 open source packages ship an affected version, including tecnickcom/tc-lib-pdf-font.
| Package | Affected | Fixed in |
|---|---|---|
tecnickcom/tc-lib-pdf-font Packagist | All versions | 2.6.4 |
tecnickcom/tc-lib-pdf-font Packagist | All versions | 2.6.4 |
How do I fix CVE-2024-56520?
Upgrade tecnickcom/tc-lib-pdf-font to 2.6.4 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-56520 being exploited?
There is no known exploitation of CVE-2024-56520 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2024-56520, GHSA-grhh-r4jj-8jh7, UBUNTU-CVE-2024-56520.