libvips Null Pointer Dereference Vulnerability in Matrix Load Function

Vulnerability

A null pointer dereference vulnerability has been identified in libvips versions through 8.18.0. The issue arises in the function 'vips_foreign_load_matrix_header' within 'libvips/foreign/matrixload.c'. When the matrix loader processes an empty file, it can lead to a crash by dereferencing a null pointer. This vulnerability requires local exploitation.

Impact

Exploitation of this vulnerability causes a process crash due to a segmentation fault, as reported by the AddressSanitizer.

Reproduction

The vulnerability can be reproduced by building libvips with AddressSanitizer enabled, creating an empty matrix file, and then using the 'vips matrixload' command to load the empty file. This triggers the null pointer dereference, causing a crash.

Remediation

Users are advised to update to libvips version 8.19.0 or later, where this vulnerability has been fixed.

Added: Feb 25, 2026, 3:44 AM
Updated: Feb 25, 2026, 3:44 AM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
2.5
exploitability
4.6
remediation
7.7
relevance
3.2
threat
6.4
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.