{
  "schema_version": "1.4.0",
  "id": "GHSA-w95c-7994-ghpr",
  "modified": "2024-12-30T18:44:43Z",
  "published": "2024-12-27T06:30:48Z",
  "aliases": [
    "CVE-2024-56522"
  ],
  "summary": "TCPDF has incorrect comparison",
  "details": "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.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A: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-56522"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tecnickcom/TCPDF/commit/d54b97cec33f4f1a5ad81119a82085cad93cec89"
    },
    {
      "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"
    },
    {
      "type": "WEB",
      "url": "https://www.php.net/manual/en/types.comparisons.php"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-697",
      "CWE-843"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-27T21:07:22Z",
    "nvd_published_at": "2024-12-27T05:15:08Z"
  }
}