Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-50142— libheif: unbounded heap allocation in HEIF sequence parser (stsz fixed-size mode missing bound check)

Quick assessment

Affected
strukturag libheif
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

struktur AG libheif是struktur AG组织的一款图像编解码库。 struktur AG libheif 1.19.0版本至1.23.0之前版本存在安全漏洞,该漏洞源于libheif/sequences/seq_boxes.cc中Box_stsz::parse()对固定大小样本的sample_count未限制以及libheif/sequences/track.cc中Track::load()的32位算术环绕,攻击者通过特制HEIF序列利用heif_context_read_from_

CVSS 7.5 · High EPSS 0.56% · P44

Possible ATT&CK Techniques 1 AI

T1496 · Resource Hijacking

Affected Version Matrix 1

VendorProduct Version RangeStatus
strukturag libheif >= 1.19.0, < 1.23.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-50142

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
libheif: unbounded heap allocation in HEIF sequence parser (stsz fixed-size mode missing bound check)
Source: CVE Program / CVE List V5
Vulnerability Description
libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap allocation. In libheif/sequences/seq_boxes.cc, Box_stsz::parse() applies max_sequence_frames only to variable-size samples, so fixed-size mode accepts an attacker-controlled sample_count without a bound. In libheif/sequences/track.cc, Track::load() also adds current_sample_idx and samples_per_chunk in 32-bit arithmetic, allowing the consistency check to be bypassed by wraparound. The resulting values reach the Chunk::Chunk() allocation path, which can consume gigabytes of memory and crash or stall the process through memory exhaustion. This issue is fixed in version 1.23.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5
Vulnerability Title
struktur AG libheif 数字错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
struktur AG libheif是struktur AG组织的一款图像编解码库。 struktur AG libheif 1.19.0版本至1.23.0之前版本存在安全漏洞,该漏洞源于libheif/sequences/seq_boxes.cc中Box_stsz::parse()对固定大小样本的sample_count未限制以及libheif/sequences/track.cc中Track::load()的32位算术环绕,攻击者通过特制HEIF序列利用heif_context_read_from_
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
strukturag libheif >= 1.19.0, < 1.23.0 -

II. Public POCs for CVE-2026-50142

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9046 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-50142

登录查看更多情报信息。

Patches & Fixes for CVE-2026-50142 (1)

Vendor Advisories for CVE-2026-50142 (1)

Vendor Pages for CVE-2026-50142 (1)

Same Patch Batch · strukturag · 2026-08-18 · 5 CVEs total

CVE-2026-62292 8.7 HIGH libheif: Out-of-bounds read in uncompressed unci tile range slicing
CVE-2026-62291 5.3 MEDIUM libheif: Heap out of bounds write in libheif uncompressed encoder when writing images with
CVE-2026-62289 4.3 MEDIUM libheif: Integer underflow in Fraction constructor via double clap transform application
CVE-2026-62377 4.3 MEDIUM libheif: Reachable assertion in HeifContext::get_track() aborts on a valid-but-empty HEIF

IV. Related Vulnerabilities

V. Comments for CVE-2026-50142

No comments yet


Leave a comment