{"id":"CVE-2026-70654","aliases":["CVE-2026-70654"],"related":[],"kind":"vulnerability","state":"published","title":"libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-20T21:07:25.540Z","modified":"2026-10-26T10:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"version":"< 8.18.3","status":"affected"}],"vendor":"libvips","product":"libvips","source":"cvelist"}],"references":[{"url":"https://github.com/libvips/libvips/security/advisories/GHSA-rjmm-3qch-m9rg","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libvips/libvips/pull/5038","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libvips/libvips/commit/80e021c6cdda0f80b756c2109d99839c94c03258","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libvips/libvips/releases/tag/v8.18.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T11:32:57.942Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70654","url":"https://www.cve.org/CVERecord?id=CVE-2026-70654","licence":"CVE Terms of Use","modified":"2026-08-21T11:35:46.559Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70654","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70654","licence":"Public domain","modified":"2026-10-26T10:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:34.705Z","epss":{"score":0.00114,"percentile":0.01628,"date":"2026-12-01T12:00:22.000Z"}}