CVE-2026-142499
libheif 1.20.0 before 1.23.6 NULL Pointer Dereference via Track_Visual::decode_next_image_sample()
libheif 1.20.0 before 1.23.6 contains a null pointer dereference vulnerability in Track_Visual::decode_next_image_sample() that allows attackers to crash the process via crafted HEIF image sequences. Attackers can map a later chunk in the 'stsc' box to a non-visual 'stsd' sample entry such as 'mp4a', causing heif_track_decode_next_image() to call through a null decoder pointer.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: VulnCheckAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| libheif strukturag strukturag/libheif
github |
≥ 1.20.0; < 1.23.6 (affected, semver)
Other versions: unaffected |
CNA: VulnCheck |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 7.1 high |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | CNA: VulnCheck |
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | CNA: VulnCheck |
Exploit evidence
- https://github.com/strukturag/libheif/security/advisories/GHSA-8p2c-9wv4-rx4p
exploit · ADP: CISA-ADP
References
- https://github.com/strukturag/libheif/security/advisories/GHSA-8p2c-9wv4-rx4pCNA: VulnCheck · vendor-advisory
- https://github.com/strukturag/libheif/commit/2b87e150b3fce9d0b29c7d97423b38ce3d8239fcCNA: VulnCheck · patch
- https://github.com/strukturag/libheif/releases/tag/v1.23.6CNA: VulnCheck · release-notes
- https://github.com/strukturag/libheif/blob/v1.23.5/libheif/sequences/track_visual.cc#L205-L214CNA: VulnCheck · technical-description
- https://www.vulncheck.com/advisories/libheif-1.20.0-before-1.23.6-null-pointer-dereference-via-track-visual-decode-next-image-sampleCNA: VulnCheck · third-party-advisory
- https://github.com/strukturag/libheif/security/advisories/GHSA-8p2c-9wv4-rx4pADP: CISA-ADP · exploit
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.