# CVE-2026-35591: libvips heap buffer overflow in tiffload

Source: https://junglewise.ai/threats/cve-2026-35591-libvips-heap-buffer-overflow-in-tiffload  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-20. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-35591 · Severity: info · CVSS 7 · Published 2026-07-20

libvips is a high-performance image processing library used by many applications to handle large image files. A vulnerability in how it processes TIFF images could allow an attacker to cause a system crash or potentially execute unauthorized commands. This occurs when the library handles specially crafted image tiles, which could disrupt services or compromise the security of the server processing the images.

Technologies: [Libvips](https://junglewise.ai/threats/technologies/libvips). Vendors: [Libvips](https://junglewise.ai/threats/vendors/libvips).

## Quick answers

**Is CVE-2026-35591 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-35591 being exploited in the wild.

**How severe is CVE-2026-35591?** Informational severity, with a CVSS score of 7, published 20 July 2026.

**Which products and versions are affected?** Libvips <= 8.18.1.

**Is there a fix for CVE-2026-35591?** A patch was published on 2026-03-26: Fix merged into 8.18 branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-35591 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-35591?** Check whether you run Libvips at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A heap-based buffer overflow (CWE-122) exists in the libvips library within the `tiffload` operation. The vulnerability is caused by the library incorrectly calculating the number of channels in JPEG or JPEG2000-encoded tiles embedded within a TIFF image. An attacker with local access could provide a maliciously crafted TIFF file to trigger the overflow. This can result in a denial of service (crash) or potentially arbitrary code execution. The issue is fixed in version 8.18.2 by validating that the number of components in the tile matches the photometric interpretation.

## Affected products

- libvips libvips <= 8.18.1

## Timeline

- 2026-03-26: patched: Fix merged into 8.18 branch
- 2026-07-17: advisory: GitHub Security Advisory published
- 2026-07-20: disclosed: CVE published to NVD

## References

- [https://github.com/libvips/libvips/commit/df044e409a0db77c980fa1a9f86a13fbfb2dc8fe](https://github.com/libvips/libvips/commit/df044e409a0db77c980fa1a9f86a13fbfb2dc8fe)
- [https://github.com/libvips/libvips/pull/4973](https://github.com/libvips/libvips/pull/4973)
- [https://github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76](https://github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76)

## Related threats

- [libvips misaligned float load in PFM image processing](https://junglewise.ai/threats/cve-2026-88360-libvips-8-19-0-contains-a-memory-access-vulnerability-when)
- [libvips heap buffer overflow in PPM source processing](https://junglewise.ai/threats/cve-2026-70654-libvips-heap-buffer-overflow-in-ppm-source-processing)
- [libvips Radiance RLE decoder heap disclosure](https://junglewise.ai/threats/cve-2026-70653-libvips-radiance-rle-decoder-heap-disclosure)
- [libvips heap buffer over-read in UHDR save](https://junglewise.ai/threats/cve-2026-70652-libvips-heap-buffer-over-read-in-uhdr-save)
- [libvips heap buffer over-read in ImageMagick fallback path](https://junglewise.ai/threats/cve-2026-70651-libvips-heap-buffer-over-read-in-imagemagick-fallback-path)
