CVE-2026-142496
published high CVSS 4.0 · 7.1libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| strukturag | — | libheif1.16.0 to < 1.23.4 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Debian | trixie | libheif | Advisory build | 1.23.4-1~deb13u1 | DSA-6523-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| strukturag | libheif | 1.16.0 to < 1.23.4 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-674 Uncontrolled Recursion
References
6- https://github.com/strukturag/libheif/blob/v1.23.3/libheif/file.cc#L661-L694
- https://github.com/strukturag/libheif/commit/7538a4f3f13a26a948f083610016e527f9b12fb5
- https://github.com/strukturag/libheif/commit/b1e4d72a492a2d7be6d1c29153660cb91e570556
- libheif v1.23.4 Release Notes https://github.com/strukturag/libheif/releases/tag/v1.23.4
- GitHub Security Advisory (GHSA-xrp2-63fq-jm8q) https://github.com/strukturag/libheif/security/advisories/GHSA-xrp2-63fq-jm8q
- VulnCheck Advisory: libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.4-uncontrolled-recursion-in-reference-cycle-check
Provider assertions
2VulnCheck · cna
libheif 1.16.0 before 1.23.4 Uncontrolled Recursion in Reference Cycle Check
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6ca2eb2a7052474a0dfcd77ab935c1e5edf3ec02f5a327540325fbde983d4e9f
- Ingested
- 02 Dec 2026, 19:36:03 UTC
- Source record
- Official CVE record