CVE & CISA-KEV Catalog

CVE-2025-68431

MEDIUM
6.5
CVSS v3
NVD

Description

libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likely from an unclipped overlay rectangle or invalid offsets), which then underflows when converted to `size_t` and is passed to `memcpy`, causing a very large read past the end of the source plane and a crash. Version 1.21.0 contains a patch. As a workaround, avoid decoding images using `iovl` overlay boxes.

How to fix

Remediation Available
libheifDebian
Fixed in:1.21.2-1CVE-2025-68431
libheifUbuntu
Fixed in:1.1.0-2ubuntu0.1~esm2USN-7952-1
Fixed in:1.6.1-1ubuntu0.1~esm2USN-7952-1
Fixed in:1.12.0-2ubuntu0.1~esm2USN-7952-1
Fixed in:1.17.6-1ubuntu4.2USN-7952-1
Fixed in:1.20.2-1ubuntu0.1USN-7952-1
libheif1Ubuntu
Fixed in:1.1.0-2ubuntu0.1~esm2USN-7952-1
Fixed in:1.6.1-1ubuntu0.1~esm2USN-7952-1
Fixed in:1.12.0-2ubuntu0.1~esm2USN-7952-1
Fixed in:1.17.6-1ubuntu4.2USN-7952-1
Fixed in:1.20.2-1ubuntu0.1USN-7952-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploit Intelligence

0.27%probability of exploitation in 30 days
18thpercentile

Low risk: more likely to be exploited than 18% of all known CVEs.

References

Release Notes1

Related Vulnerabilities

Other CWE-125 (Out-of-bounds Read) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0160High7.5100%KEVFix
CVE-2025-5777High7.5100%KEV + RansomFix
CVE-2021-4034High7.895%KEVFix
CVE-2023-21769High7.592%-Fix
CVE-2023-49285High8.689%-Fix
CVE-2020-8794Critical9.889%-Fix
Embed a live status badge for CVE-2025-68431
CVE-2025-68431 severity badge

Markdown

[![CVE-2025-68431](https://tridentstack.com/cve/badge/CVE-2025-68431.svg)](https://tridentstack.com/cve/CVE-2025-68431)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-68431"><img src="https://tridentstack.com/cve/badge/CVE-2025-68431.svg" alt="CVE-2025-68431"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-02-25.