CVE-2026-142496
Deferred Deferred - Pending Action

libheif Stack Overflow via Recursive dimg References

Vulnerability report for CVE-2026-142496, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
strukturag libheif From 1.16.0 (inc) to 1.23.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-674 The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-142496 is an uncontrolled recursion vulnerability in libheif versions 1.16.0 to 1.23.3. It occurs in HeifFile::check_for_ref_cycle_recursion() where a crafted HEIF or AVIF file with a long linear chain of 'dimg' references causes stack exhaustion during parsing, leading to a segmentation fault. The issue was fixed in libheif 1.23.4.

Detection Guidance

To detect this vulnerability, monitor for crashes in applications using libheif when processing HEIF or AVIF files. Check for segmentation faults or stack overflow errors in logs. Use tools like 'file' or 'identify' to inspect suspicious files. Update libheif to version 1.23.4 or later to include the fix.

Impact Analysis

This vulnerability allows attackers to crash applications processing HEIF/AVIF files by providing malicious files under 1 MB. It can cause denial of service (DoS) via segmentation faults, potentially disrupting services relying on libheif for image parsing.

Mitigation Strategies

Immediately update libheif to version 1.23.4 or later. If updating is not possible, disable parsing of HEIF/AVIF files in affected applications or implement network-level filtering to block malformed files. Monitor for crashes and restrict access to untrusted files.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142496. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...