Out-of-bounds Read Affecting libheif package, versions [,1.23.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (9th 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-CONAN-LIBHEIF-18302934
  • published25 Jul 2026
  • disclosed21 Jul 2026
  • creditUnknown

Introduced: 21 Jul 2026

NewCVE-2026-47254  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libheif to version 1.23.1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the Track::init_sample_timing_table process. An attacker can trigger a heap buffer overflow by providing a crafted file where the number of chunks defined in the stco box is less than the number of samples in stsz, leading to out-of-bounds access in the chunk vector during a call to heif_track_get_next_raw_sequence_sample.

References

CVSS Base Scores

version 4.0
version 3.1