CVE-2025-68431: libheif is an HEIF and AVIF file format decoder and encoder
Affects libheifSource GCVE Database
Not known to be exploited · CVSS 6.5 Medium · fixed in 1.1.0-2ubuntu0.1~esm2 : update libheif when convenient.
Data as of 24 Nov 2026, 20:11 UTC
- Patch
- Available – fixed in 1.1.0-2ubuntu0.1~esm2, 1.6.1-1ubuntu0.1~esm2, 1.12.0-2ubuntu0.1~esm2 +3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libheifpkg:deb/ubuntu/libheif?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSlibheifpkg:deb/ubuntu/libheif?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-68431 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-68431 (opens in a new tab)
- github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq (opens in a new tab)
- github.com/strukturag/libheif/releases/tag/v1.21.0 (opens in a new tab)
- ubuntu.com/security/notices/USN-7952-1 (opens in a new tab)