CVE-2026-70652
Wolfi vulnerability analysis and mitigation

Overview

CVE-2026-70652 is a heap buffer over-read vulnerability in libvips, a fast image processing library, affecting all versions prior to 8.18.3 that are compiled with libultrahdr support. The flaw exists in libvips/foreign/uhdrsave.c within the vips_foreign_save_uhdr_set_raw_hdr function, where an output buffer is incorrectly sized when a pipeline enlarges an incoming JPEG to a very large output before encoding a gain map via VipsForeignSaveUhdr. It was disclosed on August 20, 2026, and carries a CVSS v4.0 base score of 2.0 (Low) (GitHub Advisory).

Technical details

The root cause is classified as CWE-126 (Buffer Over-read): the buffer allocation used image->Xsize * image->Ysize * 8 directly instead of the correct VIPS_IMAGE_N_PELS() macro, which can produce an undersized allocation when image dimensions overflow or are computed differently than expected. The fix, applied in commit cff1779, replaces the manual calculation with 8 * VIPS_IMAGE_N_PELS(image) to ensure correct buffer sizing (GitHub Commit, GitHub PR). Exploitation requires local access with low privileges and high attack complexity, as the attacker must construct a specific pipeline that first enlarges a JPEG to a very large output before triggering the UHDR gain map encoding path (GitHub Advisory).

Impact

Successful exploitation of this vulnerability can result in a heap buffer over-read, which may disclose adjacent heap memory contents (low confidentiality impact) or crash the libvips process (low availability impact). There is no integrity impact, and the vulnerability is confined to the vulnerable system with no subsequent system impact. The practical risk is limited given the specific preconditions required and the local attack vector (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2026-70652. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The high attack complexity and requirement for a specific image processing pipeline significantly limit practical exploitability (GitHub Advisory).

Mitigation and workarounds

Upgrade libvips to version 8.18.3 or later, which contains the fix introduced in commit cff1779 (libvips Release). For deployments that cannot immediately upgrade, a workaround is to block the VipsForeignSaveUhdr operation using the vips_operation_block_set API, which is available in most language bindings: vips_operation_block_set("VipsForeignSaveUhdr", TRUE);. This workaround prevents the vulnerable UHDR save path from being invoked (GitHub Advisory).

Community reactions

The vulnerability was responsibly disclosed by Himanshu Anand and acknowledged by the libvips maintainers. The fix was reviewed and merged by project maintainer lovell on May 13, 2026, and included in the v8.18.3 release alongside several other security fixes (GitHub PR, libvips Release). No broader media coverage or notable community controversy has been observed given the low severity rating.

Additional resources


SourceThis report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-49244MEDIUM5.9
  • Wolfi logoWolfi
  • sftpgo
NoYesAug 20, 2026
CVE-2026-70654MEDIUM5.8
  • Wolfi logoWolfi
  • libvips
NoYesAug 20, 2026
CVE-2026-70653MEDIUM4.8
  • Wolfi logoWolfi
  • libvips
NoYesAug 20, 2026
CVE-2026-49245LOW3.7
  • Wolfi logoWolfi
  • github.com/drakkan/sftpgo
NoYesAug 20, 2026
CVE-2026-70652LOW2
  • Wolfi logoWolfi
  • libvips
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management