Vulnerability Details CVE-2025-68431
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.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 11.2%
CVSS Severity
CVSS v3 Score 6.5
Products affected by CVE-2025-68431
-
cpe:2.3:a:struktur:libheif:1.0.0
-
cpe:2.3:a:struktur:libheif:1.1.0
-
cpe:2.3:a:struktur:libheif:1.10.0
-
cpe:2.3:a:struktur:libheif:1.11.0
-
cpe:2.3:a:struktur:libheif:1.12.0
-
cpe:2.3:a:struktur:libheif:1.13.0
-
cpe:2.3:a:struktur:libheif:1.14.0
-
cpe:2.3:a:struktur:libheif:1.14.1
-
cpe:2.3:a:struktur:libheif:1.14.2
-
cpe:2.3:a:struktur:libheif:1.15.0
-
cpe:2.3:a:struktur:libheif:1.15.1
-
cpe:2.3:a:struktur:libheif:1.15.2
-
cpe:2.3:a:struktur:libheif:1.16.0
-
cpe:2.3:a:struktur:libheif:1.16.1
-
cpe:2.3:a:struktur:libheif:1.16.2
-
cpe:2.3:a:struktur:libheif:1.17.0
-
cpe:2.3:a:struktur:libheif:1.17.1
-
cpe:2.3:a:struktur:libheif:1.17.2
-
cpe:2.3:a:struktur:libheif:1.17.3
-
cpe:2.3:a:struktur:libheif:1.17.4
-
cpe:2.3:a:struktur:libheif:1.17.5
-
cpe:2.3:a:struktur:libheif:1.17.6
-
cpe:2.3:a:struktur:libheif:1.18.0
-
cpe:2.3:a:struktur:libheif:1.18.1
-
cpe:2.3:a:struktur:libheif:1.18.2
-
cpe:2.3:a:struktur:libheif:1.19.0
-
cpe:2.3:a:struktur:libheif:1.19.1
-
cpe:2.3:a:struktur:libheif:1.19.2
-
cpe:2.3:a:struktur:libheif:1.19.3
-
cpe:2.3:a:struktur:libheif:1.19.4
-
cpe:2.3:a:struktur:libheif:1.19.5
-
cpe:2.3:a:struktur:libheif:1.19.6
-
cpe:2.3:a:struktur:libheif:1.19.7
-
cpe:2.3:a:struktur:libheif:1.19.8
-
cpe:2.3:a:struktur:libheif:1.2.0
-
cpe:2.3:a:struktur:libheif:1.20.0
-
cpe:2.3:a:struktur:libheif:1.20.1
-
cpe:2.3:a:struktur:libheif:1.20.2
-
cpe:2.3:a:struktur:libheif:1.3.0
-
cpe:2.3:a:struktur:libheif:1.3.1
-
cpe:2.3:a:struktur:libheif:1.3.2
-
cpe:2.3:a:struktur:libheif:1.4.0
-
cpe:2.3:a:struktur:libheif:1.5.0
-
cpe:2.3:a:struktur:libheif:1.5.1
-
cpe:2.3:a:struktur:libheif:1.6.0
-
cpe:2.3:a:struktur:libheif:1.6.1
-
cpe:2.3:a:struktur:libheif:1.6.2
-
cpe:2.3:a:struktur:libheif:1.8.0
-
cpe:2.3:a:struktur:libheif:1.9.0
-
cpe:2.3:a:struktur:libheif:1.9.1