CVE-2025-29769CWE-122

libvips has a potential heap-based buffer overflow when attempting to convert multiband TIFF input to HEIF output

High · published April 7, 2025

CVSS v4.0
8.5
EPSS
0%
Percentile
19.8
In the wild
Unconfirmed
What it is

libvips is a demand-driven, horizontally threaded image processing library. The heifsave operation could incorrectly determine the presence of an alpha channel in an input when it was not possible to determine the colour interpretation, known internally within libvips as "multiband". There aren't many ways to create a "multiband" input, but it is possible with a well-crafted TIFF image. If a "multiband" TIFF input image had 4 channels and HEIF-based output was requested, this led to libvips creating a 3 channel HEIF image without an alpha channel but then attempting to write 4 channels of data. This caused a heap buffer overflow, which could crash the process. This vulnerability is fixed in 8.16.1.

The record
Technical detail
CVSS v4.0
8.5 · HIGH
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00283 · 19.8th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2025-04-07T20:09Z
EPSS history
Timeline
  • 07 APR 20:09Z
    libvips has a potential heap-based buffer overflow when attempting to convert multiband TIFF input to HEIF output
    cvelistv5