{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.23.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "64a5bba75ad64aa8c010b8ad61e32091025442b3"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.23.6",
                "range": [
                  {
                    "fixed": "f81f28ac014b1c28dee483ac45b72c6b05bc421a"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "f81f28ac014b1c28dee483ac45b72c6b05bc421a"
            },
            {
              "fixed": "770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac"
            },
            {
              "fixed": "64a5bba75ad64aa8c010b8ad61e32091025442b3"
            }
          ],
          "repo": "https://github.com/strukturag/libheif",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-vv35-6hxg-95x8"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-1284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142504.json"
  },
  "details": "libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory.",
  "id": "CVE-2026-142504",
  "modified": "2026-12-02T18:45:45.115903650Z",
  "published": "2026-12-02T17:42:23.352Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142504.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/strukturag/libheif"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L590"
    },
    {
      "type": "FIX",
      "url": "https://github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3"
    },
    {
      "type": "FIX",
      "url": "https://github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/strukturag/libheif/releases/tag/v1.23.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/strukturag/libheif/security/advisories/GHSA-vv35-6hxg-95x8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142504"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libheif-before-1.23.6-bit-depth-mismatch-leads-to-out-of-bounds-read"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read"
}