lovell sharp inherited buffer overflows in libvips

Severity: high · CVSS 7 · Published 2026-07-21

The sharp image processing library, which is widely used in web applications to resize and convert images, is affected by several security vulnerabilities inherited from its underlying component, libvips. An attacker could exploit these flaws by providing specially crafted image files (such as GIF, TIFF, or VIPS formats) to trigger system crashes or potentially execute unauthorized code. This could lead to service outages or allow an attacker to gain deeper access to the server processing the images.

Technologies: Libvips. Vendors: Libvips.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
High severity, with a CVSS score of 7, published 21 July 2026.
Which products and versions are affected?
Libvips <= 8.18.1.
Is there a fix for This vulnerability?
A patch was published on 2026-07-21: sharp version 0.35.0 released with fixes Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is This vulnerability attacked?
It is attacked with local access, in a software library.
Am I affected?
Check whether you run Libvips at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The sharp library inherits multiple vulnerabilities from libvips, including CVE-2026-33327 and CVE-2026-33328. These include an integer overflow in the 'vipsload' operation due to incorrect dimension calculation and a heap-based buffer overflow in 'tiffload' when processing JPEG-encoded tiles within TIFF images. An attacker with local access or the ability to submit untrusted images to a service using sharp can trigger these overflows. This can result in a denial of service (crash) or potential arbitrary code execution. The issues are resolved in sharp version 0.35.0 (which bundles libvips 8.18.3) or by upgrading global libvips installations to 8.18.3.

Affected products

  • lovell sharp < 0.35.0
  • libvips libvips <= 8.18.1

Timeline

  • 2026-07-17: disclosed: Initial disclosure of upstream libvips vulnerabilities
  • 2026-07-21: advisory: GitHub Advisory GHSA-f88m-g3jw-g9cj published for sharp package
  • 2026-07-21: patched: sharp version 0.35.0 released with fixes

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.