5.8medium
libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow
- Severity
- 5.8medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, applications that define unusual custom libvips sources and use them to process untrusted uncompressed PPM images can trigger a max/min error in vips_source_read_to_memory in libvips/iofuncs/source.c. The function uses VIPS_MAX instead of VIPS_MIN when selecting the remaining read size, allowing up to 4032 bytes to be written beyond the allocated heap buffer and causing memory corruption or a process crash. This issue is fixed in version 8.18.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| libvips libvips | < 8.18.3 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, applications that define unusual custom libvips sources and use them to process untrusted uncompressed PPM images can trigger a max/min error in vips_source_read_to_memory in libvips/iofuncs/source.c. The function uses VIPS_MAX instead of VIPS_MIN when selecting the remaining read size, allowing up to 4032 bytes to be written beyond the allocated heap buffer and causing memory corruption or a process crash. This issue is fixed in version 8.18.3.
NVD (es)
libvips es una rápida biblioteca de procesamiento de imágenes con bajas necesidades de memoria. Antes de la versión 8.18.3, las aplicaciones que definen fuentes libvips personalizadas inusuales y las usan para procesar imágenes PPM sin comprimir no confiables pueden desencadenar un error de max/min en vips_source_read_to_memory en libvips/iofuncs/source.c. La función utiliza VIPS_MAX en lugar de VIPS_MIN al seleccionar el tamaño de lectura restante, permitiendo que se escriban hasta 4032 bytes más allá del búfer de pila asignado y causando corrupción de memoria o un fallo del proceso. Este problema está solucionado en la versión 8.18.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70654 changed 2026-08-21 | CVE Terms of Use |
| NVD | CVE-2026-70654 changed 2026-10-26 | Public domain |