{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.22.0"
                  },
                  {
                    "fixed": "1.23.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "51360e193a1288f54592aa6fc0b7037160636514"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.23.4",
                "range": [
                  {
                    "fixed": "4e14f5942c1732ace9611b9522cc991501445463"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0c81a846b7401dbdb7118afd0761057f21e43511"
            },
            {
              "fixed": "4e14f5942c1732ace9611b9522cc991501445463"
            },
            {
              "fixed": "51360e193a1288f54592aa6fc0b7037160636514"
            }
          ],
          "repo": "https://github.com/strukturag/libheif",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-fqpw-fj22-78w4"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142498.json"
  },
  "details": "libheif 1.22.0 before 1.23.4 contains a heap out-of-bounds read vulnerability in aom_encode_sequence_frame() and x265_encode_sequence_frame() that allows attackers to disclose heap memory via crafted images with mismatched luma and chroma bit depths. Attackers can supply a crafted 'unci' file with 10-bit luma and 8-bit chroma so re-encoding reads chroma rows at twice their width, leaking heap bytes into encoded output.",
  "id": "CVE-2026-142498",
  "modified": "2026-12-02T18:45:45.323498666Z",
  "published": "2026-12-02T17:42:29.812Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142498.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/strukturag/libheif"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/strukturag/libheif/blob/v1.23.3/libheif/plugins/encoder_aom.cc#L1250-L1312"
    },
    {
      "type": "FIX",
      "url": "https://github.com/strukturag/libheif/commit/51360e193a1288f54592aa6fc0b7037160636514"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/strukturag/libheif/releases/tag/v1.23.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/strukturag/libheif/security/advisories/GHSA-fqpw-fj22-78w4"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142498"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libheif-1.22.0-before-1.23.4-heap-out-of-bounds-read-in-aom-and-x265-encoders"
    }
  ],
  "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:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libheif 1.22.0 before 1.23.4 Heap Out-of-Bounds Read in AOM and x265 Encoders"
}