- Home
- Vulnerabilities
- CVE-2026-142496
CVE-2026-142496
libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check
Medium
48/100
Summary
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.
Affected products and versions
strukturag (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| libheif | from 1.16.0 (included) to 1.23.4 (excluded) |
— | CNA (vendor or assigner) |
Fix
Not provided by the vendor.
Workaround
No workaround provided.
Check whether you are affected
Exploit reported by sources
These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.
Timeline
- — CVE published (cve)
References
- https://github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556patch
- https://github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5patch
- https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8qexploit
- https://github.com/strukturag/libheif/releases/tag/v1.23.4release-notes
- https://github.com/strukturag/libheif/blob/v1.23.3/libheif/file.cc#L661-L694technical-description
- https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.4-uncontrolled-recursion-in-reference-cycle-checkthird-party-advisory
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- NVD
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H(CVSS 3.1, NVD)- Weakness
- CWE-674 · Autre (CWE-674)