CVE-2026-84448 Details
Description
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.23.2, the public heif_region_item_add_region_inline_mask_data() function in libheif/api/libheif/heif_regions.cc accepts mask_data_len without verifying that it equals the byte count required by width and height. A later heif_region_get_mask_image() call derives the read length from the region geometry, so an undersized stored buffer causes heif_region_get_inline_mask_image() to read beyond the heap allocation and copy adjacent bytes into the returned monochrome mask image. This can disclose heap data or crash an application that constructs region metadata through the writer API, while the file-parsing path is not affected because it validates the canonical mask size. This issue is fixed in version 1.23.2.
A heap buffer overflow vulnerability has been identified in libheif versions prior to 1.23.2. The issue arises in the inline mask region API, specifically within the function heif_region_item_add_region_inline_mask_data(). This function accepts a mask data length parameter without verifying that it matches the expected byte count based on the specified width and height of the region. As a result, an undersized buffer can lead to a heap out-of-bounds read, where adjacent bytes are incorrectly copied into the returned monochrome mask image. This vulnerability can cause an application to crash or disclose sensitive heap data, particularly in scenarios where region metadata is constructed through the writer API.
Users are advised to upgrade to libheif version 1.23.2, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 18, 2026CISA-ADP
Assessed Sep 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/strukturag/libheif/security/advisories/GHSA-p58j-h3vm-3fp5 | CISA-ADP | AdvisoryBundleRemedyVendor |
| https://github.com/strukturag/libheif/commit/646d85fbf5bd18fc3cdc516e915e59072de2d510 | [email protected] | Source CodeVendor |
| https://github.com/strukturag/libheif/releases/tag/v1.23.2 | [email protected] | Release NotesVendor |
| https://github.com/strukturag/libheif/security/advisories/GHSA-p58j-h3vm-3fp5 | [email protected] | AdvisoryBundleRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-131 | Incorrect Calculation of Buffer Size | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libheif | <= 1.23.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | CVE Modified | CISA-ADP |
| Sep 18, 2026 | New CVE Received | [email protected] |
Volerion