CVE-2026-70652 libvips: Possible heap-based buffer read overflow when resizing and re-encoding a JPEG with gain map
LowCVSS 2.0
EPSS 0.14%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| libvips | = < 8.18.3 | No fix listed |
| debian/vips(Debian:14) | < 8.18.3-1 | 8.18.3-1 |
| debian/vips(Debian:14) | = 8.16.1-1 | No fix listed |
| debian/vips(Debian:14) | = 8.16.1-2 | No fix listed |
| debian/vips(Debian:14) | = 8.17.3-1 | No fix listed |
| debian/vips(Debian:14) | = 8.17.3-2 | No fix listed |
| debian/vips(Debian:14) | = 8.18.0-1 | No fix listed |
| debian/vips(Debian:14) | = 8.18.0-2 | No fix listed |
| debian/vips(Debian:14) | = 8.18.0-3 | No fix listed |
| debian/vips(Debian:14) | = 8.18.1-1 | No fix listed |
| debian/vips(Debian:14) | = 8.18.2-1 | No fix listed |
| ubuntu/vips(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/vips(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/vips(Ubuntu:26.04) | All versions | No fix listed |
References
- https://github.com/libvips/libvips/security/advisories/GHSA-h27h-jf9v-m8rg
- https://github.com/libvips/libvips/pull/5039
- https://github.com/libvips/libvips/commit/cff17794f0698a4f47c74bb31c9700b2c83252a8
- https://github.com/libvips/libvips/releases/tag/v8.18.3
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2520799 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-70652 vendor-advisory
- Ubuntu CVE tracker vendor-advisory