SecurityContext

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

IdName
CWE-190Integer Overflow or Wraparound

Public exploits

UrlSourceAdded date
https://github.com/MuhammedHussein17/libheif-cve-2026-50142poc-in-github2026-06-04

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/strukturag/libheif/commit/a6caa38f7a70d66dc9caec2a7bfe20935b32c622
https://github.com/strukturag/libheif/releases/tag/v1.23.0
https://github.com/strukturag/libheif/security/advisories/GHSA-jvmp-j3cw-84mh

Products

ProductAffectedPlatform boundSourcesUrl
struktur:libheif>= 1.19.0, < 1.23.0nocna_alias_text/v1/products/struktur/libheif

Projects

RepositoryLink kindsIndexedUrl
strukturag/libheifcommit, fix, releases, security_advisoryyes/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