Disclosure 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.
Source-reported weakness categories
CWE-125, CWE-190
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
NIST National Vulnerability Database · NVD-CVE-2025-68431
Open original source · Updated Oct 07, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
| Vendor | Product / association | Version / bounds |
|---|---|---|
| struktur | libheif | * {"versionEndExcluding":"1.21.0"} |
Original records & references
- NIST NVD record
- CVE Program record
- github.com — Patch
- github.com — Product, Release Notes
- github.com — Exploit, Patch, Vendor Advisory
PUBLISHED 2025-12-29T14:15:56-05:00
MODIFIED 2026-10-07T08:10:00-04:00
INGESTED 2026-10-08T12:40:11-04:00