CVE-2026-70654 libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow
A heap buffer overflow in libvips allows attackers to cause memory corruption or crashes when processing crafted PPM images via custom sources.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-70654?
CVE-2026-70654 is a medium-severity memory corruption vulnerability in libvips, published on 20 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, applications that define unusual custom libvips sources and use them to process untrusted uncompressed PPM images can trigger a max/min error in vips_source_read_to_memory in libvips/iofuncs/source.c. The function uses VIPS_MAX instead of VIPS_MIN when selecting the remaining read size, allowing up to 4032 bytes to be written beyond the allocated heap buffer and causing memory corruption or a process crash. This issue is fixed in version 8.18.3.
Weakness: CWE-122
Which versions are affected by CVE-2026-70654?
How do I fix CVE-2026-70654?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-70654 being exploited?
There is no known exploitation of CVE-2026-70654 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-70654, GHSA-rjmm-3qch-m9rg, UBUNTU-CVE-2026-70654.