All vulnerabilities

Servers and applications

CVE-2026-70652

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

Severity
Low 2.0
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 3% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-126
Attack
Needs local access · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read some data · Slow it down
CVSS vector
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Also known as
GHSA-h27h-jf9v-m8rg
Sources
Project advisories (GitHub)

Description

libvips compiled with support for libultrahdr could incorrectly size the output buffer when encoding JPEG images with gain maps, leading to a possible heap-based buffer read overflow

An attacker would require a specific pipeline to increase the size of an incoming JPEG to a very large output JPEG prior to encoding.

From libvips/libvips's security advisory.

Workarounds

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

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