Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. tecnickcom/tcpdf
  4. ›
  5. CVE-2024-56522

CVE-2024-56522: TCPDF has incorrect comparison

December 27, 2024 (updated December 30, 2024)

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

  • github.com/advisories/GHSA-w95c-7994-ghpr
  • github.com/tecnickcom/TCPDF
  • github.com/tecnickcom/TCPDF/commit/d54b97cec33f4f1a5ad81119a82085cad93cec89
  • github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0
  • nvd.nist.gov/vuln/detail/CVE-2024-56522
  • tcpdf.org/
  • www.php.net/manual/en/types.comparisons.php

Code Behaviors & Features

Detect and mitigate CVE-2024-56522 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.8.0

Fixed versions

  • 6.8.0

Solution

Upgrade to version 6.8.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-697: Incorrect Comparison
  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

packagist/tecnickcom/tcpdf/CVE-2024-56522.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.