Heap-based buffer overflow in libheif - #VU158754

 

Heap-based buffer overflow in libheif - #VU158754

Published: November 3, 2026


Vulnerability identifier: #VU158754
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by triggering heap corruption and a process crash.

The vulnerability exists due to a heap-based buffer overflow in libheif's HeifPixelImage::extend_padding_to_size() when a requested padding size increases one dimension but decreases the other. The function allocates a plane using the requested dimensions but copies the original plane's full rows, writing beyond the allocation. A remote attacker can supply a crafted mixed-size image sequence to an application that re-encodes its frames using the x265 HEVC or x264 AVC sequence encoder to cause a denial of service.


Affected software

libheif

Remediation

Install security update from vendor's website.

libheif - update to 1.23.7

External References

Related Security Bulletins