CVE-2024-56522: TCPDF has incorrect comparison

Published Dec 27, 2024
·
Updated

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.

Affected Software

13 affected componentsFixes available
composer/tecnickcom/tcpdf<6.8.0
6.8.0
Tcpdf Project Tcpdf<6.8.0
composer/tecnickcom/tcpdf<6.8.0
6.8.0
debian/tcpdf<6.6.2+dfsg1-1+deb12u1
6.6.2+dfsg1-1+deb12u1
debian/tcpdf<6.8.0+dfsg-1
6.8.0+dfsg-1
debian/tcpdf<6.8.0+dfsg-1
6.8.0+dfsg-1
debian/tcpdf
6.3.5+dfsg1-1+deb11u16.6.2+dfsg1-1+deb12u16.8.0+dfsg-1
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*
ubuntu/tcpdf*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/tecnickcom/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.8.0
  2. Upgrade

    Upgrade debian/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.6.2+dfsg1-1+deb12u1
  3. Upgrade

    Upgrade debian/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.8.0+dfsg-1
  4. Upgrade

    Upgrade debian/tcpdf to a version that resolves this vulnerability.

    Fixed in 6.3.5+dfsg1-1+deb11u1Fixed in 6.6.2+dfsg1-1+deb12u1Fixed in 6.8.0+dfsg-1

Event History

Dec 27, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·05:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:15 AM
Description
Advisory Published
via GitHub·06:30 AM
Data Sourced
via GitHub·06:30 AM
DescriptionWeaknessAffected Software
Data Sourced
via Packagist·06:30 AM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·09:07 PM
Dec 30, 2024
Data Sourced
via NVD·04:15 PM
SeverityWeakness
Data Sourced
via GitHub·06:44 PM
Severity
Updated
via GitHub·06:44 PM
Weakness
Apr 17, 2025
Data Sourced
via NVD·02:12 AM
RemedyAffected Software
Nov 3, 2025
Updated
via NVD·08:16 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-56522?

CVE-2024-56522 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2024-56522?

To fix CVE-2024-56522, upgrade TCPDF to version 6.8.0 or later.

3

What does CVE-2024-56522 affect?

CVE-2024-56522 affects versions of TCPDF prior to 6.8.0.

4

What is the nature of the vulnerability in CVE-2024-56522?

CVE-2024-56522 is a vulnerability related to improper hash comparison in the unserializeTCPDFtag function.

5

Are there any known exploits for CVE-2024-56522?

As of now, there are no publicly known exploits for CVE-2024-56522.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203