{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.16.0"
                  },
                  {
                    "fixed": "1.23.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "b1e4d72a492a2d7be6d1c29153660cb91e570556"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "7538a4f3f13a26a948f083610016e527f9b12fb5"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.23.4",
                "range": [
                  {
                    "fixed": "4e14f5942c1732ace9611b9522cc991501445463"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "6f479d76f57d68bb8d1a842aea37544834fdbe40"
            },
            {
              "fixed": "4e14f5942c1732ace9611b9522cc991501445463"
            },
            {
              "fixed": "b1e4d72a492a2d7be6d1c29153660cb91e570556"
            },
            {
              "fixed": "7538a4f3f13a26a948f083610016e527f9b12fb5"
            }
          ],
          "repo": "https://github.com/strukturag/libheif",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-xrp2-63fq-jm8q"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-674"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142496.json"
  },
  "details": "libheif 1.16.0 before 1.23.4 contains an uncontrolled recursion vulnerability in HeifFile::check_for_ref_cycle_recursion() that allows attackers to crash the process via crafted files. Attackers can supply a HEIF or AVIF file under 1 MB with a long linear chain of 'dimg' references to exhaust the stack during heif_context_read_from_file(), causing a segmentation fault.",
  "id": "CVE-2026-142496",
  "modified": "2026-12-02T20:45:23.960193280Z",
  "published": "2026-12-02T17:42:32.068Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142496.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/strukturag/libheif"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/strukturag/libheif/blob/v1.23.3/libheif/file.cc#L661-L694"
    },
    {
      "type": "FIX",
      "url": "https://github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/strukturag/libheif/releases/tag/v1.23.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142496"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.4-uncontrolled-recursion-in-reference-cycle-check"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check"
}