Out-of-Bounds Affecting libheif package, versions <1.20.2-1ubuntu0.4


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.12% (2nd 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 IDSNYK-UBUNTU2510-LIBHEIF-15517680
  • published14 Mar 2026
  • disclosed11 Mar 2026

Introduced: 11 Mar 2026

CVE-2026-3950  (opens in a new tab)
CWE-119  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.10 libheif to version 1.20.2-1ubuntu0.4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libheif package and not the libheif package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

A vulnerability was identified in strukturag libheif up to 1.21.2. This impacts the function Track::load of the file libheif/sequences/track.cc of the component stsz/stts. The manipulation leads to out-of-bounds read. The attack needs to be performed locally. The exploit is publicly available and might be used. Applying a patch is the recommended action to fix this issue. The patch available is inofficial and not approved yet.

CVSS Base Scores

version 3.1