{"id":"CVE-2026-70652","published":"2026-08-20T21:04:51Z","modified":"2026-08-21T21:45:43Z","title":"libvips: Possible heap-based buffer read overflow when resizing and re-encoding a JPEG with gain map","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, libvips built with libultrahdr support can incorrectly size an output buffer in libvips/foreign/uhdrsave.c within vips_foreign_save_uhdr_set_raw_hdr when a pipeline enlarges an incoming JPEG to a very large output before encoding a gain map through VipsForeignSaveUhdr. The undersized allocation can cause a heap buffer over-read that may disclose adjacent data or crash the process. This issue is fixed in version 8.18.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00142,"percentile":0.03555,"provenance":"source"},"cwes":[{"id":"CWE-126","name":"Buffer Over-read"}],"references":[{"url":"https://github.com/libvips/libvips/security/advisories/GHSA-h27h-jf9v-m8rg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libvips/libvips/pull/5039","tags":["x_refsource_MISC"]},{"url":"https://github.com/libvips/libvips/commit/cff17794f0698a4f47c74bb31c9700b2c83252a8","tags":["x_refsource_MISC"]},{"url":"https://github.com/libvips/libvips/releases/tag/v8.18.3","tags":["x_refsource_MISC"]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":0.71},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"libvips","affectedVersions":[{"vendor":"libvips","product":"libvips","versions":["< 8.18.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T20:58:36.766334Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63652","exploited":false,"provenance":"source"}}