← Vulnerability feed

Vulnerability record · CVE-2025-68431 · published 29 December 2025

CVE-2025-68431: Struktur libheif out-of-bounds read vulnerability

Struktur · Libheif

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.

7.1 CVSS 3.1 High EPSS 0.34% · top 75.1% CWE-125 · Out-of-bounds readCWE-190 · Integer overflow
7.1CVSS 3.1 base score
0.34%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References, 1 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-68431 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2026-32740Struktur libheif out-of-bounds write vulnerabilitylibheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the gri…EPSS 0.56%8.8CVE-2023-49460Struktur libheif vulnerabilitylibheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::decode_uncompressed_image.EPSS 0.76%8.8CVE-2023-49462Struktur libheif vulnerabilitylibheif v1.17.5 was discovered to contain a segmentation violation via the component /libheif/exif.cc.EPSS 0.80%8.8CVE-2023-49463Struktur libheif vulnerabilitylibheif v1.17.5 was discovered to contain a segmentation violation via the function find_exif_tag at /libheif/exif.cc.EPSS 0.77%8.8CVE-2023-49464Struktur libheif vulnerabilitylibheif v1.17.5 was discovered to contain a segmentation violation via the function UncompressedImageCodec::get_luma_bits_per_pixel_from_configuratio…EPSS 0.76%8.8CVE-2020-19498Struktur libheif vulnerabilityFloating point exception in function Fraction in libheif 1.4.0, allows attackers to cause a Denial of Service or possibly other unspecified impacts.EPSS 1.4%8.8CVE-2020-19499Struktur libheif out-of-bounds read vulnerabilityAn issue was discovered in heif::Box_iref::get_references in libheif 1.4.0, allows attackers to cause a Denial of Service or possibly other unspecifi…EPSS 1.4%8.8CVE-2019-11471Struktur libheif use after free vulnerabilitylibheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context.cc mishandles references to …EPSS 1.8%

Source: NIST National Vulnerability Database (record CVE-2025-68431), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.