CVE-2025-68431
published 2025-12-29CVE-2025-68431: 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…
PriorityP434high7.1CVSS 3.1
AVNACLPRNUIRSUCLINAH
EPSS
0.27%
18.5th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libheif | < libheif 1.21.2-1 (forky) | libheif 1.21.2-1 (forky) |
| struktur | libheif | < 1.21.0 | 1.21.0 |
| struktur | libheif | >= 0 < 1.21.2-1 | 1.21.2-1 |
| struktur | libheif | >= 0 < 1.17.6-1ubuntu4.2 | 1.17.6-1ubuntu4.2 |
| struktur | libheif | >= 0 < 1.20.2-1ubuntu0.1 | 1.20.2-1ubuntu0.1 |
| struktur | libheif | >= 0 < 1.1.0-2ubuntu0.1~esm2 | 1.1.0-2ubuntu0.1~esm2 |
| struktur | libheif | >= 0 < 1.6.1-1ubuntu0.1~esm2 | 1.6.1-1ubuntu0.1~esm2 |
| struktur | libheif | >= 0 < 1.12.0-2ubuntu0.1~esm2 | 1.12.0-2ubuntu0.1~esm2 |
| strukturag | libheif | < 1.21.0 | 1.21.0 |
CVSS provenance
nvdv3.17.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
osv7.5HIGH
vendor_ubuntu7.5HIGH
vendor_debian6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
libheif vulnerabilities
osv·2026-01-12·CVSS 7.5
CVE-2024-25269 [HIGH] libheif vulnerabilities
libheif vulnerabilities
It was discovered that libheif did not correctly handle certain memory
operations. An attacker could possibly use this issue to cause a denial
of service. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS
and Ubuntu 24.04 LTS. (CVE-2024-25269)
Aldo Ristori discovered that libheif did not correctly handle certain
memory operations. An attacker could possibly use this issue to cause a
denial of service or execute arbitrary code. (CVE-2025-68431)
OSV
CVE-2025-68431: libheif is an HEIF and AVIF file format decoder and encoder
osv·2025-12-29·CVSS 7.1
CVE-2025-68431 [HIGH] CVE-2025-68431: libheif is an HEIF and AVIF file format decoder and encoder
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.
Ubuntu
libheif vulnerabilities
vendor_ubuntu·2026-01-12·CVSS 7.5
CVE-2025-68431 [HIGH] libheif vulnerabilities
Title: libheif vulnerabilities
Summary: Several security issues were fixed in libheif.
It was discovered that libheif did not correctly handle certain memory
operations. An attacker could possibly use this issue to cause a denial
of service. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS
and Ubuntu 24.04 LTS. (CVE-2024-25269)
Aldo Ristori discovered that libheif did not correctly handle certain
memory operations. An attacker could possibly use this issue to cause a
denial of service or execute arbitrary code. (CVE-2025-68431)
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2025-68431: libheif - libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1....
vendor_debian·2025·CVSS 6.5
CVE-2025-68431 [MEDIUM] CVE-2025-68431: libheif - libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1....
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 1.21.2-1)
sid: resolved (fixed in 1.21.2-1)
trixie: open
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2025-68431 libheif: libheif has Potential Heap Buffer Over-Read [fedora-42]
bugzilla·2025-12-31·CVSS 7.1
CVE-2025-68431 [HIGH] CVE-2025-68431 libheif: libheif has Potential Heap Buffer Over-Read [fedora-42]
CVE-2025-68431 libheif: libheif has Potential Heap Buffer Over-Read [fedora-42]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
The following link provides references to all essential vulnerability management information. If something is wrong or missing, please contact a member of PSIRT.
https://spaces.redhat.com/display/PRODSEC/Vulnerability+Management+-+Essential+Documents+for+Engineering+Teams
Discussion:
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports
Wiz
CVE-2025-68431 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz·CVSS 6.5
CVE-2025-68431 [MEDIUM] CVE-2025-68431 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2025-68431 :
NixOS vulnerability analysis and mitigation
HeifPixelImage::overlay()
size_t
memcpy
iovl
Source : NVD
## 7.1
Score
Published December 29, 2025
Severity HIGH
CNA Score 6.5
Affected Technologies
NixOS
Homebrew
Has Public Exploit Yes
Has CISA KEV Exploit No
CISA KEV Release Date N/A
CISA KEV Due Date N/A
Exploitation Probability Percentile (EPSS) 18.5
Exploitation Probability (EPSS) 0.1
Affected packages and libraries
libheif1
libheif-dav1d
Sources
NVD
Alpine 3.10, 3.11, 3.12, 3.13, 3.14, 3.15, 3.16, 3.17, 3.18, 3.19, 3.20, 3.21 Severity HIGH Has Fix Added at: Mar 02, 2026
Alpine 3.22 Severity HIGH Has Fix Added at: Jan 25, 2026
Alpine 3.23 Severity HIGH Has Fix Added at: Feb 04, 2026
Alpine edge Severity HIGH Has Fix Added at: Jan 24, 2026
2025-12-29
Published