Skip to main content
VulnerabilityPublished Updated

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

Affects libheifSource GCVE Database

0
Compare
Authoritative record:CVE-2026-41071· Medium 5.1

Not known to be exploited · CVSS 5.1 Medium · fixed in 1.20.2-1ubuntu0.4 : update libheif when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.20.2-1ubuntu0.4, 1.21.2-3ubuntu0.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 May 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 24 Nov 2026.

What to do

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

Affected software

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

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. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) in the SampleAuxInfoReader constructor. The SampleAuxInfoReader constructor iterates over saiz->get_num_samples() samples but doesn't validate that this count is consistent with the number of chunks in the chunks vector. When saiz declares more samples than the chunks cover, the loop increments current_chunk past chunks.size(), causing an out-of-bounds read on the chunks vector. The vulnerability is triggered during file parsing (heif_context_read_from_file) without any additional user interaction. Any application using libheif to open untrusted HEIF files is affected. This issue has been fixed in version 1.22.0.

References

Community reviews

Loading reviews…