---
id: CVE-2026-70652
title: libvips is a fast image processing library with low memory needs
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_h…
severity: none
cwe:
  - CWE-126
published: '2026-08-20'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:09:01.757'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-70652'
references:
  - url: >-
      https://github.com/libvips/libvips/commit/cff17794f0698a4f47c74bb31c9700b2c83252a8
    label: security-advisories@github.com
  - url: 'https://github.com/libvips/libvips/pull/5039'
    label: security-advisories@github.com
  - url: 'https://github.com/libvips/libvips/releases/tag/v8.18.3'
    label: security-advisories@github.com
  - url: 'https://github.com/libvips/libvips/security/advisories/GHSA-h27h-jf9v-m8rg'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00114
epssPercentile: 0.01682
ingestedAt: '2026-09-18T20:51:25.646Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
