libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check
CVE-2026-142496Published 2 Dec 2026, 17:42 UTC
Real-world risk
2.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from VulnCheck)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| libheifNiche | >= 1.16.0, < 1.23.4 | 1.23.4 |
What to do
Update to a fixed version: 1.23.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
The arithmetic
- Prerequisites multiplied together0.700
- Threat T3: Public proof of concept0.950
- 10 × impact 0.4 × prerequisites 0.7 × threat 0.952.660
- Rounded to one decimal between 0.1 and 102.7
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 2.4 (cvss fallback)
- 2 Dec 2026 Reference tagged as exploit first seen
- 2 Dec 2026 CISA SSVC: proof of concept first seen
- 2 Dec 2026 Risk 2.4 → 2.7 (cvss fallback)
Weakness
CWE-674
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8qexploit, vendor-advisory
- https://github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556patch
- https://github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5patch
- 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
- CVE-2026-142496 on CVE.org