CVE-2025-68431: libheif has Potential Heap Buffer Over-Read

Published Dec 29, 2025
·
Updated

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 sizet 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.

Affected Software

2 affected components
libheif<1.21.0
struktur Libheif<1.21.0

Event History

Dec 29, 2025
CVE Published
via MITRE·07:09 PM
Data Sourced
via MITRE·07:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-68431?

CVE-2025-68431 has been classified as a moderate severity vulnerability due to the potential for heap buffer over-read.

2

How do I fix CVE-2025-68431?

To fix CVE-2025-68431, update libheif to version 1.21.0 or later.

3

What could be the impact of CVE-2025-68431?

The impact of CVE-2025-68431 could lead to unexpected behavior and possible exploitation due to heap buffer over-read.

4

On which versions of libheif is CVE-2025-68431 found?

CVE-2025-68431 affects versions of libheif prior to 1.21.0.

5

What type of vulnerability is CVE-2025-68431?

CVE-2025-68431 is a heap buffer over-read vulnerability triggered by crafted HEIF files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203