Skip to content
OpenAdvisories
Low · 2.0 CVE-2026-70652 EUVD-2026-63652

libvips: Possible heap-based buffer read overflow when resizing and re-encoding a JPEG with gain map

Published Aug 20, 2026 · Updated Aug 21, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
libvips libvips < 8.18.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vips 8.18.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS vips No fix yet —
Ubuntu Pro 24.04 LTS vips No fix yet —
Ubuntu Pro 22.04 LTS vips No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS vips No fix yet —
Ubuntu Pro 18.04 LTS vips No fix yet —
Ubuntu Pro 16.04 LTS vips No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed vips 8.18.7-1.1 openSUSE-SU-2026:12266-1

Advisories 1

References