GHSA-grhh-r4jj-8jh7medium
tecnickcom/tc-lib-pdf-font mishandles fonts
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
tecnickcom/tc-lib-pdf-font Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.6.4Ecosystem versions | 2.6.4 |
Version evidence: OSV · GHSA-grhh-r4jj-8jh7
View original version evidence (77 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-56520
- Patch github.com/tecnickcom/TCPDF/commit/a0a02efe487cc39bd5223359e916dbeafb5cd6fe
- Patch github.com/tecnickcom/tc-lib-pdf-font/commit/30012e333ae611c514ec2dc7cb370bbf4da4e677
- Source reference github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0
- Source reference github.com/tecnickcom/tc-lib-pdf-font
- Source reference github.com/tecnickcom/tc-lib-pdf-font/compare/2.6.2...2.6.4
- Source reference lists.debian.org/debian-lts-announce/2025/06/msg00004.html
- Source reference tcpdf.org/