7.5

CVE-2026-50142: strukturag libheif Integer Overflow or Wraparound

CVSS: 7.5v3.1HighDeferred
AliasesALPINE-CVE-2026-50142UBUNTU-CVE-2026-50142DEBIAN-CVE-2026-50142
Published 18-08-2026Last modified 19-08-2026

Vulnerability summary

CVE-2026-50142 is a high (CVSS 7.5) Integer Overflow or Wraparound vulnerability in strukturag libheif. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 50.4% of scored vulnerabilities.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.66%
0%100%
Low · +0.10 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 5

Timeline

  1. 18-08-2026
    PublishedVulnerability first disclosed.
  2. 19-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.66%

Chance of exploitation in the next 30 days

Percentile

50%

Versus all other CVEs

30-day change

+0.10 pp

From 0.56% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.66%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • libheif< 1.23.0-r0
Debian1 product
  • libheifAll versions (No fix recorded) | < 1.23.1-1
Strukturag1 product
Ubuntu1 product
  • libheif< 1.20.2-1ubuntu0.6 | < 1.21.2-3ubuntu0.3

4 vendors · 4 products

References

8 links