CVE-2024-56522: TCPDF has incorrect comparison
An issue was discovered in TCPDF before 6.8.0. unserializeTCPDFtag uses != (aka loose comparison) and does not use a constant-time function to compare TCPDF tag hashes.
Published Dec 27, 2024 · Updated Nov 3, 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. unserializeTCPDFtag uses != (aka loose comparison) and does not use a constant-time function to compare TCPDF tag hashes.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-56522
- https://github.com/tecnickcom/TCPDF/commit/d54b97cec33f4f1a5ad81119a82085cad93cec89
- https://github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0
- https://tcpdf.org
- https://www.php.net/manual/en/types.comparisons.php
- https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html
- https://github.com/advisories/GHSA-w95c-7994-ghpr
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-56527
TCPDF missing character escape on error messages
medium4.8Dec 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
