{"id":"CVE-2026-70652","aliases":["CVE-2026-70652"],"related":[],"kind":"vulnerability","state":"published","title":"libvips: Possible heap-based buffer read overflow when resizing and re-encoding a JPEG with gain map","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"libvips es una biblioteca de procesamiento de imágenes rápida con bajas necesidades de memoria. Antes de la versión 8.18.3, libvips compilado con soporte para libultrahdr puede dimensionar incorrectamente un búfer de salida en libvips/foreign/uhdrsave.c dentro de vips_foreign_save_uhdr_set_raw_hdr cuando una tubería agranda un JPEG entrante a una salida muy grande antes de codificar un mapa de ganancia a través de VipsForeignSaveUhdr. La asignación de tamaño insuficiente puede causar una lectura excesiva del búfer de pila que puede revelar datos adyacentes o bloquear el proceso. Este problema está solucionado en la versión 8.18.3.","source":"nvd"}],"published":"2026-08-20T21:04:51.898Z","modified":"2026-10-26T10:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":2,"rating":"LOW"}],"cwes":["CWE-126"],"affected":[{"ranges":[{"version":"< 8.18.3","status":"affected"}],"vendor":"libvips","product":"libvips","source":"cvelist"}],"references":[{"url":"https://github.com/libvips/libvips/security/advisories/GHSA-h27h-jf9v-m8rg","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libvips/libvips/pull/5039","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libvips/libvips/commit/cff17794f0698a4f47c74bb31c9700b2c83252a8","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-21T20:58:36.766Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70652","url":"https://www.cve.org/CVERecord?id=CVE-2026-70652","licence":"CVE Terms of Use","modified":"2026-08-21T21:45:43.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70652","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70652","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"}}