# CVE-2026-84448: libheif: Heap out-of-bounds read in libheif inline-mask region API (heif\_region\_item\_add\_region\_inline\_mask\_data / heif\_region\_get\_mask\_image)

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-125, CWE-131
- **Published:** 2026-09-18T15:53:42.499Z
- **Modified:** 2026-09-24T21:18:55.407Z

## Who should check

- Anyone running strukturag libheif \< 1.23.2

## 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.

## Affected and fixed versions

- strukturag libheif: \< 1.23.2 (cvelist)

## Mitigation

- Upgrade libheif to 1.23.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-84448. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-84448.md
Affected: strukturag libheif < 1.23.2
Fixed in: strukturag libheif 1.23.2

Steps:
1. Search this machine and project for strukturag libheif: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-84448 being exploited?

There is no confirmed exploitation: CVE-2026-84448 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-84448?

Medium: CVSS 4.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-84448?

strukturag libheif \< 1.23.2.

### Is there a fix for CVE-2026-84448?

Yes. Fixed in strukturag libheif 1.23.2. Upgrade libheif to 1.23.2 or later.

### How do I check if I'm affected by CVE-2026-84448?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/strukturag/libheif/security/advisories/GHSA-p58j-h3vm-3fp5>
- patch: <https://github.com/strukturag/libheif/commit/646d85fbf5bd18fc3cdc516e915e59072de2d510>
- other: <https://github.com/strukturag/libheif/releases/tag/v1.23.2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-84448>

HTML: <https://flawdb.com/CVE-2026-84448> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-84448>
