CVE-2026-70652 libvips: Possible heap-based buffer read overflow when resizing and re-encoding a JPEG with gain map
Attackers can trigger a heap buffer over-read in libvips when resizing JPEGs with gain maps, potentially disclosing memory or crashing the application.
- 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-70652?
CVE-2026-70652 is a low-severity 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, libvips built with libultrahdr support can incorrectly size an output buffer in libvips/foreign/uhdrsave.c within vips_foreign_save_uhdr_set_raw_hdr when a pipeline enlarges an incoming JPEG to a very large output before encoding a gain map through VipsForeignSaveUhdr. The undersized allocation can cause a heap buffer over-read that may disclose adjacent data or crash the process. This issue is fixed in version 8.18.3.
Weakness: CWE-126
Which versions are affected by CVE-2026-70652?
How do I fix CVE-2026-70652?
Upgrade to a fixed version.
Is CVE-2026-70652 being exploited?
There is no known exploitation of CVE-2026-70652 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-70652, GHSA-h27h-jf9v-m8rg, UBUNTU-CVE-2026-70652.