Skip to main content
CVE-2025-68431VulnerabilityPublished Updated

CVE-2025-68431: strukturag libheif · Out-of-bounds Read

Affects strukturag libheifSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium : upgrade to 1.21.0 when convenient.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.21.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: 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 2026-10-25.

What to do

Upgrade strukturag/libheif to 1.21.0.

Affected software

ProductAffectedFixed in
GitHubstrukturag/libheifpkg:github/strukturag/libheifOther threatsAffected
  • <1.21.0
Fixed in
  • 1.21.0

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

AI-suggested

European organizations should immediately upgrade libheif to version 1.21.0 or later to apply the official patch that fixes the vulnerability. Where upgrading is not immediately feasible, implement strict input validation and filtering to block or quarantine HEIF images containing overlay ('iovl') boxes. Employ sandboxing or isolated environments for image processing tasks to contain potential crashes and prevent broader system impact. Update antivirus and endpoint protection solutions to detect malformed HEIF files exploiting this vulnerability. Educate users and administrators about the risks of opening untrusted HEIF images, especially those received via email or downloaded from unverified sources. Monitor application logs for crashes related to image decoding and investigate suspicious image files. For embedded or IoT devices using libheif, coordinate with vendors for firmware updates or apply mitigations to restrict image input sources. Finally, integrate this vulnerability into incident response plans to quickly address any exploitation attempts.

Description

libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likely from an unclipped overlay rectangle or invalid offsets), which then underflows when converted to `size_t` and is passed to `memcpy`, causing a very large read past the end of the source plane and a crash. Version 1.21.0 contains a patch. As a workaround, avoid decoding images using `iovl` overlay boxes.

References

Community reviews

Loading reviews…