libheif
CVE-2026-84451 · GHSA-hh47-fhqr-cj2r
Incomplete range-check fix allowed integer wrap and out-of-bounds read
Moderate, 6.5 · Public source snapshot: November 12, 2026
Original portfolio report · Upstream commit · Upstream commit · Source reference · Public advisory
Shared credits and the scope of my investigation are documented below.
The fix for an earlier libheif uncompressed-image issue corrected an overflow-prone range check in one branch but left the same addition-form check in a sibling full-item branch. A crafted tiled HEIF image could make the 64-bit range_start_offset + range_size calculation wrap to zero, bypass the bounds check, and reach memcpy() with an invalid source range.
The public advisory reports a reproducible out-of-bounds read and process crash through the public tile-decoding API. Version 1.23.3 applies an overflow-safe subtraction-form check and adds regression coverage.
Before pointer arithmetic or copying, an offset and length must be validated without first adding attacker-influenced integers that can wrap. Correct validation proves both offset <= size and length <= size - offset.
| Field | Public record |
|---|---|
| Identifiers | CVE-2026-84451; GHSA-hh47-fhqr-cj2r |
| Project | libheif |
| Public severity | Moderate, CVSS 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) |
| CWE | CWE-125 — Out-of-bounds Read |
| Affected | 1.19.0 through 1.23.2 |
| Fixed | 1.23.3 |
| Fix commit | 8bfed9a9ed008e4ef28abc736284a90d3cba754f |
| Regression commit | cc1047d76435cee70f5daa7cc39638b22e8edf6c |
The affected path is the no-icef full-item branch in the uncompressed-image decoder. Tile metadata influences the tile index, computed size, and start offset. The public proof uses a valid final advertised tile whose computed range wraps at the 64-bit boundary.
The confirmed impact is an out-of-bounds read followed by a reliable process crash when an application decodes the crafted advertised tile. Potentially affected consumers include tile extractors, region-preview services, tiled-image viewers, converters, and server-side pipelines that enumerate and decode tiles.
The advisory does not demonstrate confidentiality loss, an out-of-bounds write, or code execution. Applications that only perform whole-image decoding are not claimed to reach this exact path.
The maintainer advisory lists libheif 1.19.0 through 1.23.2 as affected and 1.23.3 as fixed. The public proof confirmed the vulnerable behavior on 1.23.1. The CVE identifier is displayed by the maintainer advisory; CVE Services may lag that authoritative public record.
Version 1.23.3 replaces the overflow-prone addition check with a subtraction-form guard equivalent to:
if (range_start_offset > data_size ||
range_size > data_size - range_start_offset) {
return invalid_input;
}
Consumers should update to 1.23.3 or later. Similar offset-plus-size checks should be audited before pointer formation, and regression tests should cover the final advertised tile and arithmetic boundary conditions.
The maintainer published GHSA-hh47-fhqr-cj2r on September 1, 2026, with technical details and public proof material. A full public write-up is therefore appropriate.
The GitHub advisory credits the-vibe-dev (my GitHub account) as a reporter, alongside two other reporters. The libheif maintainers authored the fix.
Use the public reproduction material only in disposable environments or on systems you are explicitly authorized to assess.