CVE-2025-68431: struktur libheif Out-of-bounds Read
Vulnerability summary
CVE-2025-68431 is a high (CVSS 7.1) Out-of-bounds Read vulnerability in struktur libheif. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 35.5% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 29-12-2025PublishedVulnerability first disclosed.
- 30-12-2025Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- CVE.orgCNA6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
36%
Versus all other CVEs
30-day change
+0.10 pp
From 0.33% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLibheif
Maturity: poc
Weaknesses
CWE · root cause- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Affected systems
Suse4 products
- libheif&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP7< 1.19.5-150700.3.3.1
- libheif&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 1.19.5-150700.3.3.1
- libheif&distro=SUSE Linux Enterprise Server 16.0< 1.19.7-160000.3.1
- libheif&distro=SUSE Linux Enterprise Server for SAP applications 16.0< 1.19.7-160000.3.1
Opensuse3 products
- libheif&distro=openSUSE Leap 15.6< 1.12.0-150400.3.17.1
- libheif&distro=openSUSE Leap 16.0< 1.19.7-160000.3.1
- libheif&distro=openSUSE Tumbleweed< 1.21.1-1.1
Alpine1 product
- libheif< 1.21.2-r0
Debian1 product
- libheifAll versions (No fix recorded) | < 1.19.8-1+deb13u1 | < 1.21.2-1
Struktur1 product
- libheif< 1.21.0
Strukturag1 product
- libheif< 1.21.0
Ubuntu1 product
- libheif< 1.1.0-2ubuntu0.1~esm2 | < 1.6.1-1ubuntu0.1~esm2 | < 1.12.0-2ubuntu0.1~esm2 | < 1.17.6-1ubuntu4.2 | < 1.20.2-1ubuntu0.1 | < 1.21.2-1
7 vendors · 12 products
References
13 links- github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfqX Refsource CONFIRMREPORTExploitPatchVendor Advisory