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-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/19/2026, 18:51:17 UTC

Technical Analysis

libheif is a library for decoding and encoding HEIF and AVIF file formats. Versions before 1.22.1 contain a vulnerability where the uncompressed HEIF decoder validates compressed-unit offsets by adding unit_offset and unit_size without proper overflow checks. This addition can wrap around, allowing a crafted HEIF file to bypass range checks and cause the construction of a vector from iterators outside the compressed item buffer. This results in an out-of-bounds heap read and potential crash. The vulnerability is identified as CWE-125 (Out-of-bounds Read) and 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 vulnerable versions of libheif. This can lead to application crashes (denial of service). There is no indication of confidentiality or integrity impact. The CVSS 3.1 base score is 6.5 (medium severity) with network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality or integrity impact, and high availability impact.

Mitigation Recommendations

Upgrade libheif to version 1.22.1 or later, where this vulnerability is patched. No other mitigation or temporary workaround is indicated. Users should ensure they do not process untrusted HEIF files with vulnerable versions.

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/19/2026, 18:51:17 UTC

Last updated: 06/20/2026, 23:27:27 UTC

Views: 12

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