libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check
Summary
| CVE | CVE-2026-142496 |
|---|---|
| State | PUBLISHED |
| Assigner | VulnCheck |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-02 18:19:01 UTC |
| Updated | 2026-12-02 18:19:01 UTC |
| Description | libheif 1.16.0 before 1.23.4 contains an uncontrolled recursion vulnerability in HeifFile::check_for_ref_cycle_recursion() that allows attackers to crash the process via crafted files. Attackers can supply a HEIF or AVIF file under 1 MB with a long linear chain of 'dimg' references to exhaust the stack during heif_context_read_from_file(), causing a segmentation fault. |
Risk And Classification
Primary CVSS: v4.0 7.1 HIGH from [email protected]
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Problem Types: CWE-674 | CWE-674 Uncontrolled Recursion
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 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/E:X/C... |
| 4.0 | CNA | CVSS | 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 |
| 3.1 | [email protected] | Primary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.1 | CNA | CVSS | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
NonePrivileges Required
NoneUser Interaction
PassiveConfidentiality
NoneIntegrity
NoneAvailability
HighSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Strukturag | Libheif | affected 1.16.0 1.23.4 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.4-uncontrolled-recursio... | [email protected] | www.vulncheck.com | |
| github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q | [email protected] | github.com | |
| github.com/strukturag/libheif/blob/v1.23.3/libheif/file.cc | [email protected] | github.com | |
| github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e5... | [email protected] | github.com | |
| github.com/strukturag/libheif/releases/tag/v1.23.4 | [email protected] | github.com | |
| github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Bartłomiej Dmitruk (striga.ai) (en)
There are currently no legacy QID mappings associated with this CVE.