Strukturag libheif
libheif: Heap buffer overflow in `scale_nearest_neighbor()` via duplicate Alpha planes from nested `iden`/`auxl` items
libheif is a HEIF and AVIF file format decoder and encoder. From 1.22.0 until 1.23.2, a crafted HEIF, HEIC, or AVIF item graph using nested iden and auxl references can make HeifPixelImage::transfer_channel_from_image_as() append duplicate Alpha planes with different bit depths to m_storage. HeifPixelImage::scale_nearest_neighbor() in libheif/image/pixelimage.cc allocates the destination Alpha plane using the first plane's 8-bit depth, then iterates a later 10-bit or 12-bit Alpha component and writes uint16_t samples into the same 8-bit allocation. The output geometry controls the overflow extent and the encoded sample values control the data written, allowing a remote file processed by heif_decode_image() to cause a heap out-of-bounds write. This issue is fixed in version 1.23.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.22.0, < 1.23.2
Fixed in 1.23.2
Mitigation
Upgrade libheif to 1.23.2 or later.
References
- Vendor advisory github.com/strukturag/libheif/security/advisor…
- Patch github.com/strukturag/libheif/commit/f4fb8bde4…
- Release notes github.com/strukturag/libheif/releases/tag/v1.…
Timeline
Days relative to CVE publicationFirst public PoC 11 days after publication; not in CISA KEV. First PoC: dinosn/libheif-cve-2026-84383-lab (created 29 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| dinosn/libheif-cve-2026-84383-lab | 29 Sep 2026 +11 d | 10 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Informational 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| sachincool/cve-2026-84383-poc | 28 Oct 2026 +40 d | 14 Nov 2026 | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /uploads.json
- Key headers
Api-Key: {var}- Body markers
upload_type=composerfile=@inmultipart/form-data- Seen in
- 1 repo: dinosn/libheif-cve-2026-84383-lab
- Evidence
- dinosn/libheif-cve-2026-84383-lab/scripts/verify.sh:134
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/uploads\.json(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-84383 strukturag libheif exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/uploads.json"; http.header_names; content:"Api-Key"; nocase; http.request_body; content:"upload_type=composer"; http.request_body; content:"file=@"; reference:url,poc.griffinguard.io/cve/CVE-2026-84383; classtype:web-application-attack; sid:9631282; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: strukturag libheif exploit attempt (CVE-2026-84383)
id: gg-pocmon-cve-2026-84383-9631282
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-84383. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-84383
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/uploads.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.84383