{"id":"CVE-2026-70654","published":"2026-08-20T21:07:25Z","modified":"2026-08-21T11:35:46Z","title":"libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow","vendor":"libvips","product":"libvips","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00142,"percentile":0.01758,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/libvips/libvips/security/advisories/GHSA-rjmm-3qch-m9rg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libvips/libvips/pull/5038","tags":["x_refsource_MISC"]},{"url":"https://github.com/libvips/libvips/commit/80e021c6cdda0f80b756c2109d99839c94c03258","tags":["x_refsource_MISC"]},{"url":"https://github.com/libvips/libvips/releases/tag/v8.18.3","tags":["x_refsource_MISC"]}],"priority":{"score":4.4,"factors":[{"name":"EPSS percentile","points":0.35},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"libvips","affectedVersions":[{"vendor":"libvips","product":"libvips","versions":["< 8.18.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T11:32:57.942167Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63656","exploited":false,"provenance":"source"}}