CVE-2025-29769
JSON

8.5high

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

Severity
8.5high CVSS:4.0 by GitHub_M
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
libvips libvips< 8.16.1, before 8.16.1CVE List, NVD
debian debian_linux11.0NVD

All scores

GitHub_M8.5high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

libvips es una librería de procesamiento de imágenes basada en demanda y con subprocesos horizontales. La operación heifsave podía determinar incorrectamente la presencia de un canal alfa en una entrada cuando no era posible determinar la interpretación del color, lo que se conoce internamente en libvips como "multibanda". No existen muchas maneras de crear una entrada "multibanda", pero es posible con una imagen TIFF bien manipulada. Si una imagen de entrada TIFF "multibanda" tenía 4 canales y se solicitaba una salida basada en HEIF, libvips creaba una imagen HEIF de 3 canales sin canal alfa, pero luego intentaba escribir 4 canales de datos. Esto provocaba un desbordamiento del búfer de pila, lo que podía bloquear el proceso. Esta vulnerabilidad se corrigió en la versión 8.16.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-29769 changed 2025-04-30CVE Terms of Use
NVDCVE-2025-29769 changed 2026-06-17Public domain