CVE-2025-68431: CWE-125: Out-of-bounds Read in strukturag libheif
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.
CVE-2025-68431: CWE-125: Out-of-bounds Read in strukturag libheif
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.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-12-17T15:29:39.380Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6952d37171a94549f14fd85f
Added to database: 12/29/2025, 7:16:01 PM
Last updated: 12/29/2025, 9:42:25 PM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-68607: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Hiroaki Miyashita Custom Field Template
MediumCVE-2025-68562: CWE-434 Unrestricted Upload of File with Dangerous Type in RomanCode MapSVG
CriticalCVE-2025-68504: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Crocoblock JetSearch
MediumCVE-2025-68503: CWE-862 Missing Authorization in Crocoblock JetBlog
MediumCVE-2025-68502: CWE-639 Authorization Bypass Through User-Controlled Key in Crocoblock JetPopup
MediumActions
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.