CVE-2024-56520: tecnickcom/tc-lib-pdf-font mishandles fonts
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.
Other sources
tecnickcom/tc-lib-pdf-font mishandles fonts
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/tecnickcom/tc-lib-pdf-fontto a version that resolves this vulnerability.Fixed in 2.6.4 - Upgrade
Upgrade
debian/tcpdfto a version that resolves this vulnerability.Fixed in 6.6.2+dfsg1-1+deb12u1 - Upgrade
Upgrade
debian/tcpdfto a version that resolves this vulnerability.Fixed in 6.8.0+dfsg-1 - Upgrade
Upgrade
debian/tcpdfto a version that resolves this vulnerability.Fixed in 6.3.5+dfsg1-1+deb11u1Fixed in 6.6.2+dfsg1-1+deb12u1Fixed in 6.8.0+dfsg-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56520?
The severity of CVE-2024-56520 is classified as important due to potential impact on font handling in applications.
How do I fix CVE-2024-56520?
To fix CVE-2024-56520, upgrade the tc-lib-pdf-font package to version 2.6.4 or later.
Which software is affected by CVE-2024-56520?
CVE-2024-56520 affects tc-lib-pdf-font versions before 2.6.4 and TCPDF versions prior to 6.8.0.
What types of fonts are affected by CVE-2024-56520?
CVE-2024-56520 specifically affects the handling of Type 1 and TrueType fonts.
What are the potential consequences of CVE-2024-56520?
The potential consequences of CVE-2024-56520 include mishandled fonts leading to incorrect rendering in PDF documents.