MEDIUM · CVSS 6.5 Published: 2026-12-02
CVE-2026-142496 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2026-142496 |
|---|---|
| Base Severity / Score | MEDIUM (6.5 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| Weakness Classification | CWE-674 |
| Archive Categories | MEDIUM Advisories · 2026 Index |
Operational Mitigation Guidance
Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://github.com/strukturag/libheif/blob/v1.23.3/libheif/file.cc#L661-L694
- https://github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5
- https://github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556
- https://github.com/strukturag/libheif/releases/tag/v1.23.4
- https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q
- https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.4-uncontrolled-recursion-in-reference-cycle-check
- https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q
Related Security Advisories
CVE-2026-16688 MEDIUM 5.3
CVE-2026-142497 MEDIUM 6.5
CVE-2026-141601 MEDIUM 5.3
CVE-2026-142499 MEDIUM 6.5
CVE-2026-142500 MEDIUM 6.5
CVE-2026-142501 MEDIUM 6.5