CVE-2026-50142: libheif - Denial of Service
- Cve: CVE-2026-50142
- Name: libheif - Denial of Service
- Description: libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap allocation. In libheif/sequences/seq_boxes.cc, Box_stsz::parse() applies max_sequence_frames only to variable-size samples, so fixed-size mode accepts an attacker-controlled sample_count without a bound. In libheif/sequences/track.cc, Track::load() also adds current_sample_idx and samples_per_chunk in 32-bit arithmetic, allowing the consistency check to be bypassed by wraparound. The resulting values reach the Chunk::Chunk() allocation path, which can consume gigabytes of memory and crash or stall the process through memory exhaustion. This issue is fixed in version 1.23.0.
- Impact: Attackers can cause memory exhaustion leading to process crash or stall, resulting in denial of service.
- Remediation: Update to version 1.23.0 or later.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00655
- Epss percentile: 0.52123
- Assignee: [email protected]
- Published at: 2026-08-18T22:16:52Z
- Age in days: 98
- Modified at: 2026-10-22T17:09:59Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-50142
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/MuhammedHussein17/libheif-cve-2026-50142 | poc-in-github | 2026-06-04 |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| struktur:libheif | >= 1.19.0, < 1.23.0 | no | cna_alias_text | /v1/products/struktur/libheif |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| strukturag/libheif | commit, fix, releases, security_advisory | yes | /v1/repositories/strukturag/libheif |
Index
- Repositories: 956
- Repositories high signal: 674
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-06-04
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts