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 package | Versions | Reported by |
|---|---|---|
| libvips libvips | < 8.16.1, before 8.16.1 | CVE List, NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| GitHub_M | 8.5high CVSS:4.0 | 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 |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Classification
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
| https://github.com/libvips/libvips/security/advisories/GHSA-f8r8-43hh-rghm | patch, vendor-advisory | |
| https://github.com/libvips/libvips/pull/4392 | issue-tracking | |
| https://github.com/libvips/libvips/pull/4394 | issue-tracking | |
| https://github.com/libvips/libvips/commit/9ab6784f693de50b00fa535b9efbbe9d2cbf71f2 | patch | |
| https://issues.oss-fuzz.com/issues/396460413 | exploit, issue-tracking, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2025/04/msg00044.html | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-29769 changed 2025-04-30 | CVE Terms of Use |
| NVD | CVE-2025-29769 changed 2026-06-17 | Public domain |