{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-50142 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-50142 is a high-severity denial of service vulnerability in strukturag libheif, published on 18 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-50142 and fix it if it is affected.\n\nWhat it is: CVE-2026-50142 is a high-severity denial of service vulnerability in strukturag libheif, published on 18 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-50142 in the wild and no public exploit code.\n\nAffected product: strukturag libheif. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-50142/ (Markdown: https://insights.sbomify.com/CVE-2026-50142/index.md)","id":"CVE-2026-50142","markdown":"https://insights.sbomify.com/CVE-2026-50142/index.md","name":"CVE-2026-50142","record":{"aliases":["ALPINE-CVE-2026-50142","BELL-CVE-2026-50142","DEBIAN-CVE-2026-50142","GHSA-jvmp-j3cw-84mh","MINI-9mgj-9mwg-95c2","ROOT-OS-DEBIAN-12-CVE-2026-50142","UBUNTU-CVE-2026-50142"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"HEIF/AVIF image library","requires_auth":"none","summary":"A crafted HEIF file can cause unbounded heap allocation and memory exhaustion in libheif, leading to a denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-06-04","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-04T07:18:58Z","kind":"github_poc","ref":"https://github.com/MuhammedHussein17/libheif-cve-2026-50142","stars":0,"title":"CVE-2026-50142 — Heap allocation vulnerability in libheif HEIF sequence parser"}],"tier":"poc_unverified"},"has_fix":true,"headline":"libheif: unbounded heap allocation in HEIF sequence parser (stsz fixed-size mode missing bound check)","id":"CVE-2026-50142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"Actor MCP path authority injection leaks Apify token","id":"CVE-2026-50143"},"packages":[],"prev":{"headline":"Woodpecker gRPC agent_id metadata can be spoofed- cross-tenant agent impersonation","id":"CVE-2026-50141"},"products":["libheif"],"published":"2026-08-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-19","vendors":["strukturag"]},"summary":"A crafted HEIF file can cause unbounded heap allocation and memory exhaustion in libheif, leading to a denial of service.","url":"https://insights.sbomify.com/CVE-2026-50142/"}