Skip to content
Fencer Vulns
medium 6.5

CVE-2025-68431 json

libheif has Potential Heap Buffer Over-Read

published 2025-12-29 10 mo ago modified 2026-10-07 33 d ago also EUVD-2025-205646 , JLSEC-2026-156

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 37%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia libheif_jll 1.21.2000+0
  • struktur libheif 1.21.0
  • libheif Debian 13 1.19.8-1+deb13u1
  • libheif Debian 14 1.21.2-1

debian advisories DEBIAN-CVE-2025-68431

  • libheif Ubuntu 24.04 LTS 1.17.6-1ubuntu4.2
  • libheif Ubuntu 25.10 1.20.2-1ubuntu0.1
  • libheif Ubuntu 26.04 LTS 1.21.2-1
  • libheif Ubuntu Pro 18.04 LTS 1.1.0-2ubuntu0.1~esm2
  • libheif Ubuntu Pro 20.04 LTS 1.6.1-1ubuntu0.1~esm2
  • libheif Ubuntu Pro 22.04 LTS 1.12.0-2ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2025-68431

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libheif SLE Module for Package Hub 15 SP7, SLE Module for Desktop Applications 15 SP7 1.23.0-150700.3.15.1
  • libheif SLES for SAP applications 16.0, SLES 16.0 1.23.0-160000.1.1
  • libheif openSUSE Leap 15.6 1.12.0-150400.3.17.1
  • libheif SLES for SAP applications 16.0, SLES 16.0 1.19.7-160000.3.1
  • libheif SLE Module for Package Hub 15 SP7, SLE Module for Desktop Applications 15 SP7 1.19.5-150700.3.3.1

suse advisories SUSE-SU-2026:2622-1SUSE-SU-2026:22153-1SUSE-SU-2026:0377-1SUSE-SU-2026:20121-1SUSE-SU-2026:0087-1

  • libheif openSUSE Leap 16.0 1.23.0-160000.1.1
  • libheif openSUSE Leap 16.0 1.19.7-160000.3.1
  • libheif openSUSE Tumbleweed 1.21.1-1.1

opensuse advisories openSUSE-SU-2026:20974-1openSUSE-SU-2026:20076-1openSUSE-SU-2026:10019-1

  • libheif Alpine 3.22 1.19.8-r1
  • libheif Alpine 3.24, Alpine 3.23 1.21.2-r0

alpine advisories ALPINE-CVE-2025-68431

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-68431 updated cvss 7.3

libheif: libheif has Potential Heap Buffer Over-Read

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
10 mo ago

Exploit prediction

0.43% chance of exploitation in the next 30 days, higher than 37% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 3.1 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
OSV 3.1 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia libheif_jll
<1.21.2000+0
1.21.2000+0

Affected products

  • strukturag libheif

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.