libvips
cpe:2.3:a:libvips:libvips:*:*:*:*:*:*:*, +1 more
- 8.19.0
A vulnerability allowing out-of-bounds read has been identified in libvips version 8.19.0. The issue arises in the unpremultiply function, where the alpha_band parameter is not properly validated before being used as a direct index for pixel data. This oversight can lead to unauthorized memory access, specifically a heap-buffer-overflow, which is reported by AddressSanitizer. The vulnerability must be exploited locally, and a proof-of-concept exploit is available.
Exploitation of this vulnerability causes a heap-buffer-overflow, leading to out-of-bounds memory access.
The vulnerability can be reproduced by using the 'vips' command-line tool with the 'unpremultiply' operation. After preparing a 3-band image, the 'unpremultiply' command can be executed with an 'alpha-band' value that exceeds the valid range, such as 10. This triggers the out-of-bounds access in the 'vips_unpremultiply_gen' function, causing the reported heap-buffer-overflow.
Users are advised to update to libvips version 8.19.1 or later, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.