Description
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.23.2, when WITH_UNCOMPRESSED_CODEC is enabled, heif_context_add_image_tile() accepts an independently constructed tile whose component-plane dimensions do not match the tile geometry established by the prototype image. ImageItem_uncompressed::add_image_tile() passes that tile directly to unc_encoder::encode_tile(), which lacked the check_component_sizes() gate and sizes its output from the configured tile geometry while copying the tile's actual component-plane dimensions. An oversized component plane can therefore make unc_encoder_component_interleave::encode_tile() copy attacker-controlled data beyond the heap output buffer. This issue is fixed in version 1.23.2.
Severity (CVSS)
| Base score | 7.4 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-787 — CWE-787: Out-of-bounds Write
Affected products
| Vendor | Product | Versions |
|---|---|---|
| strukturag | libheif | < 1.23.2 |
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-j264-xvrp-5v7q (x_refsource_CONFIRM)
- https://github.com/strukturag/libheif/commit/e65071f59a1ac08aa1eb0d07a831deaf6bb4d03b (x_refsource_MISC)
- https://github.com/strukturag/libheif/releases/tag/v1.23.2 (x_refsource_MISC)
Generated from the official CVE List on 19 Sep 2026 07:08 UTC.