{"id":"CVE-2026-142496","summary":"libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check","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.","aliases":["GHSA-xrp2-63fq-jm8q"],"modified":"2026-12-02T20:45:23.960193280Z","published":"2026-12-02T17:42:32.068Z","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"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/strukturag/libheif","events":[{"introduced":"6f479d76f57d68bb8d1a842aea37544834fdbe40"},{"fixed":"4e14f5942c1732ace9611b9522cc991501445463"},{"fixed":"b1e4d72a492a2d7be6d1c29153660cb91e570556"},{"fixed":"7538a4f3f13a26a948f083610016e527f9b12fb5"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"1.16.0"},{"fixed":"1.23.4"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"b1e4d72a492a2d7be6d1c29153660cb91e570556"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"7538a4f3f13a26a948f083610016e527f9b12fb5"}]},{"source":"REFERENCES_TAG","original_tag":"v1.23.4","range":[{"fixed":"4e14f5942c1732ace9611b9522cc991501445463"}]}]}}],"versions":["v1.23.3","v1.23.2","v1.23.1","v1.23.0","v1.22.2","v1.22.1","v1.22.0","v1.21.2","v1.21.1","v1.21.0","v1.20.1","v1.20.0","v1.19.5","v1.19.4","v1.19.3","v1.19.2","v1.19.1","v1.19.0","v1.18.0","v1.18.0-rc1","v1.17.6","v1.17.5","v1.17.4","v1.17.3","v1.17.2","v1.17.1","v1.17.0","v1.16.2","v1.16.1","v1.16.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142496.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}