BreachSpiderVerified, not vibes

CVE-2026-32741 in Full products

High 7.1

libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and below contain a heap buffer overflow in MaskImageCodec::decode_mask_image(). When decoding a HEIF file containing a mask image (mski), the function copies the full iloc extent data into a pixel buffer using memcpy(dst, data.data(), data....

Affects 0 products from 1 vendor. Facts below cite their sources.

CVSS 3.17.1
EPSS0.6%
EPSS percentile43th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Full — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and below contain a heap buffer overflow in MaskImageCodec::decode_mask_image(). When decoding a HEIF file containing a mask image (mski), the function copies the full iloc extent data into a pixel buffer using memcpy(dst, data.data(), data.size()). The copy length data.size() is determined by the iloc extent in the file (attacker-controlled), while the destination buffer is sized based on the declared image dimensions. Because no upper-bound check exists on the data length, a crafted file whose iloc extent exceeds the pixel buffer allocation overflows the heap. The vulnerable single-memcpy branch is reached when the mskC property specifies bits_per_pixel = 8 and the ispe property declares an even width ≥ 64 (so that stride == width), with no changes to default security limits or external codec plugins required. This issue has been fixed in version 1.22.0.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-32741
BreachSpider IDBS-2026-GLOBAL-082104-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Published2026-05-19
Last modified2026-05-20
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-122: Heap-Based Buffer Overflow

Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.

Related attack patterns (CAPEC)

CAPEC-92 Forced Integer Overflow via CWE-122

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A heap buffer overflow vulnerability exists in libheif versions 1.21.2 and below, affecting the MaskImageCodec::decode_mask_image() function when processing HEIF files with mask images.

An attacker can exploit this vulnerability by crafting a malicious HEIF file with a specially crafted mask image (mski) that causes the function to copy more data into a pixel buffer than it can hold, leading to a heap buffer overflow.

Questions

What is CVE-2026-32741?

A heap buffer overflow vulnerability exists in libheif versions 1.21.2 and below, affecting the MaskImageCodec::decode_mask_image() function when processing HEIF files with mask images.

What is the CVSS score for CVE-2026-32741?

CVE-2026-32741 has CVSS 7.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H. EPSS: 0.6%.

Is CVE-2026-32741 actively exploited?

No confirmed active exploitation of CVE-2026-32741 as of 2026-05-30.

How do I remediate CVE-2026-32741?

Priority: HIGH.

What systems are affected by CVE-2026-32741?

CVE-2026-32741 affects Full.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Full","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-05-20.