{"id":"CVE-2026-70654","state":"PUBLISHED","title":"libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow","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.","publishedAt":"2026-08-20T21:07:25.540Z","updatedAt":"2026-08-21T11:35:46.559Z","severity":{"score":5.8,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["libvips libvips"],"affected":[{"vendor":"libvips","product":"libvips","versions":[{"version":"< 8.18.3","status":"affected"}]}],"references":["https://github.com/libvips/libvips/security/advisories/GHSA-rjmm-3qch-m9rg","https://github.com/libvips/libvips/pull/5038","https://github.com/libvips/libvips/commit/80e021c6cdda0f80b756c2109d99839c94c03258","https://github.com/libvips/libvips/releases/tag/v8.18.3"],"weaknesses":["CWE-122"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/70xxx/CVE-2026-70654.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-70654","state":"PUBLISHED","datePublished":"2026-08-20T21:07:25.540Z","dateUpdated":"2026-08-21T11:35:46.559Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-04T21:48:08.612Z"},"containers":{"cna":{"title":"libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow","descriptions":[{"lang":"en","value":"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":[{"vendor":"libvips","product":"libvips","versions":[{"version":"< 8.18.3","status":"affected"}]}],"references":[{"url":"https://github.com/libvips/libvips/security/advisories/GHSA-rjmm-3qch-m9rg","name":"https://github.com/libvips/libvips/security/advisories/GHSA-rjmm-3qch-m9rg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libvips/libvips/pull/5038","name":"https://github.com/libvips/libvips/pull/5038","tags":["x_refsource_MISC"]},{"url":"https://github.com/libvips/libvips/commit/80e021c6cdda0f80b756c2109d99839c94c03258","name":"https://github.com/libvips/libvips/commit/80e021c6cdda0f80b756c2109d99839c94c03258","tags":["x_refsource_MISC"]},{"url":"https://github.com/libvips/libvips/releases/tag/v8.18.3","name":"https://github.com/libvips/libvips/releases/tag/v8.18.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.8,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","lang":"en","description":"CWE-122: Heap-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-20T21:07:25.540Z"},"source":{"advisory":"GHSA-rjmm-3qch-m9rg","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-21T11:32:57.942167Z","id":"CVE-2026-70654","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-21T11:35:46.559Z"}}]}}}