Skip to main content
VulnerabilityPublished Updated

CVE-2026-50142: libheif is a HEIF and AVIF file format decoder and encoder

Affects libheifSource GCVE Database

0
Compare
Authoritative record:CVE-2026-50142· High 7.5

Not known to be exploited · CVSS 7.5 High · fixed in 1.20.2-1ubuntu0.6 : patch libheif soon.

Data as of 24 Nov 2026, 20:42 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.20.2-1ubuntu0.6, 1.21.2-3ubuntu0.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu libheif to 1.20.2-1ubuntu0.6 (package) or 1.21.2-3ubuntu0.3 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=resoluteOther threatsAffected
  • <1.21.2-3ubuntu0.3
Fixed in
  • 1.21.2-3ubuntu0.3
Ubuntu 25.10libheifpkg:deb/ubuntu/libheif?arch=source&distro=questingOther threatsAffected
  • <1.20.2-1ubuntu0.6
Fixed in
  • 1.20.2-1ubuntu0.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…