tecnickcom/tcpdf · Security
TCPDF has incorrect comparison
- GHSA ID
- GHSA-w95c-7994-ghpr
- CVE ID
- CVE-2024-56522
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Description
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.
CWEs
- CWE-697 · Incorrect Comparison
- CWE-843 · Access of Resource Using Incompatible Type ('Type Confusion')
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 ↗