Out-of-bounds Read Affecting libheif-tools-debuginfo package, versions <0:1.19.8-1.amzn2023.0.3


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.08% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Read vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-LIBHEIFTOOLSDEBUGINFO-15067696
  • published23 Jan 2026
  • disclosed29 Dec 2025

Introduced: 29 Dec 2025

CVE-2025-68431  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 libheif-tools-debuginfo to version 0:1.19.8-1.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2026-1363.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libheif-tools-debuginfo package and not the libheif-tools-debuginfo package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1