All vulnerabilities

Servers and applications

CVE-2026-70654

A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow

Severity
Medium 5.8
Published
14 Aug 2026
Last changed
14 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
8.18.3
Exploit chance
0.1% in the next 30 daysHigher than 1% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Heap-based buffer overflow (CWE-122)
Attack
Needs local access · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Change some data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Also known as
GHSA-rjmm-3qch-m9rg
Sources
Project advisories (GitHub)

Description

Those defining their own custom libvips sources, which are highly unusual, and using these to process untrusted, uncompressed PPM images could result in writing 4032 bytes beyond the allocated heap due to min/max confusion.

From libvips/libvips's security advisory.

Workarounds

A possible workaround for those affected is to block the VipsForeignLoadPpm operation via vips_operation_block_set, which is available in most language bindings.

Alternatively, the VIPS_BLOCK_UNTRUSTED environment variable can be set to prevent the use of all "untrusted" image decoders, which includes the PPM loader.

Workarounds as given by libvips/libvips's security advisory.

Affected software

SoftwareAffected versions
libvipsServers and applications · github:libvips/libvips
  • Every version before 8.18.3

About libvips

A fast image processing library with low memory needs.

From its GitHub repository.
GitHub stars
11,810GitHub, 15 Nov 2026
Forks
808GitHub, 15 Nov 2026
Latest release
v8.18.7GitHub, 15 Nov 2026
Released
26 Sept 2026GitHub
License
LGPL-2.1GitHub
First published on GitHub
25 Jan 2011GitHub

References