CVE-2026-142496: Vulnerability in Strukturag Libheif
Patch soon. 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.
CWE-674
- Exploitation
- None confirmed
- Severity
- 6.5 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-6w73-pwq9-4vp2
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weakness
- CWE-674
- Published
- 2 Dec 2026
- Last change
- 2 Dec 2026
Affected products
Affected versions and the first fixed release
- Strukturag Libheif From 1.16.0 before 1.23.4. Fixed in 1.23.4
Advisories
Vendor and security advisories
- github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q
- github.com/strukturag/libheif/blob/v1.23.3/libheif/file.cc
- vulncheck.com/advisories/libheif-1.16.0-before-1.23.4-uncontrolled-recursion-in-referen...
Patches and fixes
Updates, commits and release notes
- github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556
- github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5
- github.com/strukturag/libheif/releases/tag/v1.23.4
Related
- Libheif vulnerabilities Recent advisories, watch this product