Executive brief
libvips is a fast image processing library used to handle and transform images across many applications. When built without libtiff support but with ImageMagick fallback enabled, the library can be crashed by a specially crafted multi-page TIFF image, potentially disrupting services that depend on it for image processing.
Technical details
This is a heap buffer over-read vulnerability in the ImageMagick fallback loader (VipsForeignLoadMagick) found in libvips/foreign/magick6load.c and libvips/foreign/magick7load.c. The vulnerable code multiplies per-page Ysize by the number of frames (n_frames) without overflow checking, leading to an integer overflow and undersized heap buffer allocation. An attacker can provide a crafted multi-page TIFF file that triggers this overflow when processed by libvips without native libtiff support, resulting in a heap buffer over-read and process crash (denial of service). The vulnerability affects versions prior to 8.18.3 and is fixed in that version. Most package-manager distributions include libtiff support and do not use this vulnerable fallback path.
Affected products
- libvips libvips prior to 8.18.3
Timeline
- 2026-08-20: disclosed: CVE-2026-70651 published
- 2026-05-14: patched: Fix merged in commit 05719ca3d5852acdeb6714de2e8e769c9a5d2c11 for version 8.18.3