CVE-2024-56527: TCPDF missing character escape on error messages
An issue was discovered in TCPDF before 6.8.0. The Error function lacks an htmlspecialchars call for the error message.
Published Dec 27, 2024 · Updated Nov 4, 2025
Affected packages
tecnickcom/tcpdf
- Ecosystem
- Composer (PHP)
- Affected
- < 6.8.0
- Fixed in
- 6.8.0
- Check
composer show tecnickcom/tcpdf
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in TCPDF before 6.8.0. The Error function lacks an htmlspecialchars call for the error message.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-56527
- https://github.com/tecnickcom/TCPDF/commit/11778aaa2d9e30a9ae1c1ee97ff349344f0ad6e1
- https://github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0
- https://tcpdf.org
- https://andrea0.medium.com/analysis-of-cve-2024-56527-dbdab6962add
- https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html
- https://github.com/advisories/GHSA-qx95-cwh6-9mvq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2024-56519
TCPDF lacks SVG sanitization
medium5.3Dec 27, 2024CVE-2024-56521
TCPDF missing certificate validation
high8.2Dec 27, 2024CVE-2024-56522
TCPDF has incorrect comparison
high7.5Dec 27, 2024CVE-2024-51058
TCPDF Local File Inclusion vulnerability
medium6.2Nov 26, 2024CVE-2024-22640
TCPDF vulnerable to Regular Expression Denial of Service
medium5.1Apr 19, 2024CVE-2024-32489
TCPDF Cross-site Scripting vulnerability
medium6.1Apr 15, 2024
