GHSA-w95c-7994-ghprhigh7.5
TCPDF has incorrect comparison
Impact
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.
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/tcpdf Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 6.8.0Ecosystem versions | 6.8.0 |
Version evidence: OSV · GHSA-w95c-7994-ghpr
View original version evidence (131 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2024-56522
- Patch github.com/tecnickcom/TCPDF/commit/d54b97cec33f4f1a5ad81119a82085cad93cec89
- Source reference github.com/tecnickcom/TCPDF
- Source reference github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0
- Source reference lists.debian.org/debian-lts-announce/2025/06/msg00004.html
- Source reference tcpdf.org/
- Source reference www.php.net/manual/en/types.comparisons.php