libvips Heap-Based Buffer Overflow Vulnerability Due to Integer Overflow in Dimension Calculation

Vulnerability

A heap-based buffer overflow vulnerability has been identified in libvips versions through 8.18.0. The issue arises in the 'vipsload' operation, where incorrect determination of image dimensions can lead to an integer overflow, allowing for a buffer overflow on the heap.

Impact

Exploitation of this vulnerability can lead to a heap-based buffer overflow, which may allow for arbitrary code execution or cause a program crash.

Remediation

Users can upgrade to libvips version 8.18.1 or later to address this vulnerability. For those unable to upgrade, it is possible to block the 'VipsForeignLoadVips' operation using 'vips_operation_block_set', available in most language bindings. Alternatively, the 'VIPS_BLOCK_UNTRUSTED' environment variable can be set to disable all 'untrusted' image decoders.

Added: Jul 20, 2026, 6:33 PM
Updated: Jul 20, 2026, 6:33 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
0.6
exploitability
5.3
remediation
8.3
relevance
9.9
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.