# CVE-2024-56522: TCPDF has incorrect comparison

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-02)
- Published: 2024-12-27T00:00:00.000Z
- Modified: 2026-06-17T08:12:17.787Z
- Also known as: GHSA-w95c-7994-ghpr
- Weaknesses: CWE-697, CWE-843
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- tecnick tcpdf: before 6.8.0
- tecnickcom/tcpdf (Packagist): before 6.8.0
- tcpdf_project tcpdf: before 6.8.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://tcpdf.org> (product, web)
- <https://github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0> (issue-tracking, web)
- <https://github.com/tecnickcom/TCPDF/commit/d54b97cec33f4f1a5ad81119a82085cad93cec89> (patch, web)
- <https://www.php.net/manual/en/types.comparisons.php> (not-applicable, web)
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-56522> (advisory)
- <https://github.com/tecnickcom/TCPDF> (package)

## Sources

- CVE List: [CVE-2024-56522](https://www.cve.org/CVERecord?id=CVE-2024-56522), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-w95c-7994-ghpr](https://github.com/advisories/GHSA-w95c-7994-ghpr), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2024-56522](https://nvd.nist.gov/vuln/detail/CVE-2024-56522), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56522 · Whole record: https://cve.day/CVE-2024-56522.json · Rebuilt by cve.day 2026-11-25T22:58:50.387Z
