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…
EPSS 0.2%top 90%

CVE-2026-49271: CWE-125: Out-of-bounds Read in strukturag libheif

0
Medium
VulnerabilityCVE-2026-49271cvecve-2026-49271cwe-125
Published: 06/19/2026 (06/19/2026, 17:16:20 UTC)
Source: CVE Database V5
Vendor/Project: strukturag
Product: libheif

Description

libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.1, the uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unit_offset + unit_size. Because the addition can wrap, a crafted HEIF file can pass the range check and then construct a vector from iterators outside the compressed item buffer, producing an out-of-bounds heap read and crash. Version 1.22.1 patches the issue.

CVSS v3.1

Score 6.5medium

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

Affected software

GitHub Actionsmore threats →ai
strukturag/libheif
pkg:github/strukturag/libheif
Affected versions
<1.22.1

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: 06/26/2026, 19:19:59 UTC

Technical Analysis

libheif versions before 1.22.1 contain an out-of-bounds read vulnerability (CWE-125) in the uncompressed HEIF decoder. The vulnerability arises because the addition of unit_offset and unit_size can wrap around, allowing a crafted HEIF file to bypass range checks and cause the decoder to construct a vector from iterators outside the compressed item buffer. This results in an out-of-bounds heap read and potential crash. The issue is addressed in libheif version 1.22.1.

Potential Impact

An attacker can craft a malicious HEIF file that triggers an out-of-bounds heap read in libheif, leading to a denial of service (application crash). There is no indication of confidentiality or integrity impact. The CVSS score is 6.5 (medium severity) reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and impact limited to availability.

Mitigation Recommendations

Upgrade libheif to version 1.22.1 or later, where this vulnerability is patched. No other mitigation or temporary fix is indicated.

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-05-28T20:07:58.860Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a358c5cf198dc38c1f2fbc3

Added to database: 06/19/2026, 18:37:16 UTC

Last enriched: 06/26/2026, 19:19:59 UTC

Last updated: 08/04/2026, 12:46:13 UTC

Views: 76

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