CVE-2025-68431 Details
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.
A heap buffer over-read vulnerability has been identified in libheif, a library for encoding and decoding HEIF and AVIF file formats. This issue affects versions through 1.20.2. The vulnerability arises in the HeifPixelImage::overlay() function, where a crafted HEIF file that utilizes the overlay image item path can trigger the flaw. The function calculates a negative row length, likely due to an improperly clipped overlay rectangle or invalid offsets. This negative value underflows when converted to size_t and is passed to memcpy, resulting in a large read past the end of the source plane and causing a crash. Additionally, this over-read could potentially lead to information disclosure by copying adjacent heap data into the destination image buffer, depending on the memory allocator and layout.
Users can upgrade to libheif version 1.21.0, which includes a patch for this vulnerability. Instructions for downloading this version are available on the libheif GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46 | [email protected] | Patch |
| https://github.com/strukturag/libheif/releases/tag/v1.21.0 | [email protected] | ProductRelease Notes |
| https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq | [email protected] | ExploitPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| struktur libheif | < 1.21.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 7, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 25, 2026 | Initial Analysis | [email protected] |
| Dec 29, 2025 | New CVE Received | [email protected] |