PoC Monitor
← All CVEs
CVE-2026-50142published 18 Aug 2026 21:18 UTCData: JSON · API

Strukturag libheif

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

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-190
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

strukturag libheif
  • >= 1.19.0, < 1.23.0

Fixed in 1.23.0

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published18 Aug 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

1 pending

Pending 1
RepositoryCreatedStarsAssessment
MuhammedHussein17/libheif-cve-2026-50142 4 Jun 2026 −76 d 0 Pending · mkdir /quarantine/MuhammedHussein17__libheif-cve-2026-50142-f03cfae64d68: permission denied

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.