CVE-2026-142495
Deferred Deferred - Pending Action

libheif Heap Overflow in HEIF File Parsing

Vulnerability report for CVE-2026-142495, 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.19.0 before 1.23.4 contains an allocation of resources without limits vulnerability in Box_iinf::parse() and Box::read_children() that allows attackers to cause denial of service via crafted HEIF files. Attackers can declare a huge number of 'infe' items to trigger quadratic CPU time and gigabytes of heap usage, or overflow the WebAssembly stack in Emscripten builds.

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.19.0 (inc) to 1.23.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-142495 is a resource exhaustion vulnerability in libheif versions 1.19.0 to 1.23.3. It occurs in Box_iinf::parse() and Box::read_children() functions where attackers can craft HEIF files with an excessive number of 'infe' items. This causes quadratic CPU time, gigabytes of heap usage, or stack overflow in Emscripten builds due to unenforced item limits.

Detection Guidance

To detect this vulnerability, check the libheif version installed on your system. Run: libheif-info --version or dpkg -l libheif1. If the version is below 1.23.4, the system is vulnerable. Monitor for crashes or high resource usage when processing HEIF files.

Impact Analysis

This vulnerability can cause denial-of-service conditions by consuming excessive CPU and memory resources. In server-side applications like thumbnail or transcode pipelines, it may lead to system slowdowns or crashes. Emscripten builds may experience permanent module crashes due to stack overflows.

Mitigation Strategies

Upgrade libheif to version 1.23.4 or later. If upgrading is not immediately possible, avoid processing untrusted HEIF files. Implement input validation to limit the number of items in HEIF files before processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142495. 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...