CVE-2026-50142: CWE-190: Integer Overflow or Wraparound in strukturag libheif
A high-severity integer overflow vulnerability exists in libheif versions from 1.19.0 up to but not including 1.23.0. This flaw allows crafted HEIF sequences with the msf1 brand to cause unbounded heap allocation, potentially exhausting system memory and crashing or stalling the process. The issue arises from improper handling of sample counts and 32-bit arithmetic wraparound in sequence parsing functions. The vulnerability is fixed in version 1.23.0.
AI Analysis
Technical Summary
libheif, a HEIF and AVIF file format decoder and encoder, contains an integer overflow or wraparound vulnerability (CWE-190) in versions 1.19.0 through 1.22.x. Specifically, when processing crafted HEIF sequences with the msf1 brand via heif_context_read_from_memory(), the Box_stsz::parse() function applies a maximum frame limit only to variable-size samples, leaving fixed-size samples unchecked for sample_count bounds. Additionally, Track::load() uses 32-bit arithmetic to add current_sample_idx and samples_per_chunk, allowing wraparound that bypasses consistency checks. These unchecked values lead to excessive heap allocations in Chunk::Chunk(), causing potential memory exhaustion and denial of service. The vulnerability is addressed in libheif version 1.23.0.
Potential Impact
Exploitation of this vulnerability can cause the affected application to consume excessive amounts of memory, leading to process crashes or stalls due to memory exhaustion. There is no impact on confidentiality or integrity reported, only availability is affected.
Mitigation Recommendations
Upgrade libheif to version 1.23.0 or later, where this vulnerability is fixed. No other mitigation or workaround is documented. Patch status is not explicitly confirmed beyond the fix in 1.23.0, so users should verify with the vendor advisory for current remediation guidance.
CVE-2026-50142: CWE-190: Integer Overflow or Wraparound in strukturag libheif
Description
A high-severity integer overflow vulnerability exists in libheif versions from 1.19.0 up to but not including 1.23.0. This flaw allows crafted HEIF sequences with the msf1 brand to cause unbounded heap allocation, potentially exhausting system memory and crashing or stalling the process. The issue arises from improper handling of sample counts and 32-bit arithmetic wraparound in sequence parsing functions. The vulnerability is fixed in version 1.23.0.
CVSS v3.1
Score 7.5high
Affected software
pkg:github/strukturag/libheifRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
libheif, a HEIF and AVIF file format decoder and encoder, contains an integer overflow or wraparound vulnerability (CWE-190) in versions 1.19.0 through 1.22.x. Specifically, when processing crafted HEIF sequences with the msf1 brand via heif_context_read_from_memory(), the Box_stsz::parse() function applies a maximum frame limit only to variable-size samples, leaving fixed-size samples unchecked for sample_count bounds. Additionally, Track::load() uses 32-bit arithmetic to add current_sample_idx and samples_per_chunk, allowing wraparound that bypasses consistency checks. These unchecked values lead to excessive heap allocations in Chunk::Chunk(), causing potential memory exhaustion and denial of service. The vulnerability is addressed in libheif version 1.23.0.
Potential Impact
Exploitation of this vulnerability can cause the affected application to consume excessive amounts of memory, leading to process crashes or stalls due to memory exhaustion. There is no impact on confidentiality or integrity reported, only availability is affected.
Mitigation Recommendations
Upgrade libheif to version 1.23.0 or later, where this vulnerability is fixed. No other mitigation or workaround is documented. Patch status is not explicitly confirmed beyond the fix in 1.23.0, so users should verify with the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-03T18:49:32.275Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a84d00bc6e8be0332c73aff
Added to database: 08/18/2026, 21:35:07 UTC
Last enriched: 08/18/2026, 21:49:31 UTC
Last updated: 08/19/2026, 03:44:13 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.