Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-50142: CWE-190: Integer Overflow or Wraparound in strukturag libheif

0
High
VulnerabilityCVE-2026-50142cvecve-2026-50142cwe-190cwe-770
Published: 08/18/2026 (08/18/2026, 21:18:03 UTC)
Source: CVE Database V5
Vendor/Project: strukturag
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

GitHub Actionsmore threats →ai
strukturag/libheif
pkg:github/strukturag/libheif
Affected versions
>=1.19.0 <1.23.0

Run 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

AILast updated: 08/18/2026, 21:49:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses