CVE-2024-56521: Tecnickcom/tcpdf TCPDF Missing Certificate Validation Vulnerability

HIGH
Advisory Identifier: GHSA-9mgx-552f-59p6
CWE-295
Published
Advisory Summary

CVE-2024-56521 is a HIGH tcpdf missing certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Tecnickcom/tcpdf libraries in the Packagist ecosystem. The issue involves tcpdf missing certificate validation. Remediation is available by upgrading affected packages to version 6.8.0.

CVE-2024-56521 at a Glance

CVE Identifier CVE-2024-56521
GHSA Identifier GHSA-9mgx-552f-59p6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Tecnickcom/tcpdf
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2024-56521

To remediate this vulnerability, upgrade all affected Tecnickcom/tcpdf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

tecnickcom/tcpdf fixed: 6.8.0
Upgrade tecnickcom/tcpdf to 6.8.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for tecnickcom/tcpdf

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-56521, inspect your project dependencies for Tecnickcom/tcpdf:

inspect dependencies for tecnickcom/tcpdf

Analyze the terminal output to locate any version of Tecnickcom/tcpdf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.8.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Tecnickcom/tcpdf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in TCPDF before 6.8.0. If libcurl is used, CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER are set unsafely.

CVE-2024-56521 Affected Tecnickcom/tcpdf Versions

1 component(s)
Fixed Versions:
6.8.0
Product / Package Ecosystem Affected Versions Fixed Version
tecnickcom/tcpdf
Packagist
< 6.8.0
6.8.0

References

Frequently Asked Questions

What is CVE-2024-56521?
CVE-2024-56521 is a security vulnerability in Tecnickcom/tcpdf involving TCPDF missing certificate validation under CWE-295: Improper Certificate Validation.
Which Tecnickcom/tcpdf versions are affected?
Affected versions include releases prior to 6.8.0 across affected packages: tecnickcom/tcpdf.
What version fixes CVE-2024-56521?
Upgrading to 6.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tecnickcom/tcpdf affected?
Yes, tecnickcom/tcpdf is affected in releases prior to 6.8.0. Upgrade your dependency to 6.8.0 or later.
What CWE is associated with CVE-2024-56521?
CVE-2024-56521 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Packagist dependencies for CVE-2024-56521?
Run the dependency tree command: 'inspect dependencies for tecnickcom/tcpdf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9mgx-552f-59p6",
  "modified" : "2024-12-27T19:54:48Z",
  "published" : "2024-12-27T06:30:47Z",
  "aliases" : [ "CVE-2024-56521" ],
  "summary" : "TCPDF missing certificate validation",
  "details" : "An issue was discovered in TCPDF before 6.8.0. If libcurl is used, CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER are set unsafely.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "tecnickcom/tcpdf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56521"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tecnickcom/TCPDF/commit/aab43ab0a824e956276141a28a24c7c0be20f554"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tecnickcom/TCPDF"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0"
  }, {
    "type" : "WEB",
    "url" : "https://tcpdf.org"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-27T19:54:48Z",
    "nvd_published_at" : "2024-12-27T05:15:07Z"
  }
}