CVE-2026-50142
Last modified
CVE-2026-50142 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.56% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| strukturag | libheif | >= 1.19.0, < 1.23.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-50142?
How severe is CVE-2026-50142?
How do I fix CVE-2026-50142?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-50136Budibase is an open-source low-code platform. Prior to 3.39.…5.3
- CVE-2026-50137Budibase is an open-source low-code platform. Prior to 3.39.…9.4
- CVE-2026-50138goshs is a SimpleHTTPServer written in Go. Prior to version …8.1
- CVE-2026-50139goshs is a SimpleHTTPServer written in Go. Prior to version …5.9
- CVE-2026-5014A vulnerability was found in elecV2 elecV2P up to 3.8.3. The…5.5
- CVE-2026-50141Woodpecker is a CI/CD engine. Starting in version 3.0.0 and …7.1
- CVE-2026-50143The Apify MCP server enables AI agents to extract data from …8.1
- CVE-2026-50144ncnn is a high-performance neural network inference framewor…7.1
- CVE-2026-50146Astro is a web framework. Prior to 6.3.3, when a component u…6.1
- CVE-2026-50147Metabase is an open-source business intelligence and embedde…7.6
- CVE-2026-50148Metabase is an open-source business intelligence and embedde…9.1
- CVE-2026-50149Contour is a Kubernetes ingress controller using Envoy proxy…6.5
Are you affected by CVE-2026-50142?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
