Skip to main content

libvips EUVDEUVD-2026-46002

| CVE-2026-35590 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-07-20 GitHub_M
6.8
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege access to image upload interface
  2. Delivery
    Craft image with out-of-range EXIF IFD index
  3. Exploit
    Submit crafted image to libvips-powered service
  4. Execution
    libvips EXIF decoder passes unvalidated IFD index to libexif
  5. Persist
    Null pointer dereference crashes libvips process
  6. Impact
    Denial of service achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target must be running libvips 8.18.1 or earlier and must process a user-supplied or attacker-controlled image file that passes through the EXIF decoder (i.e., a format that libvips parses EXIF metadata from, such as JPEG or TIFF). The CVSS 4.0 vector specifies PR:L, indicating some level of privilege or authenticated access is required - in practice this typically corresponds to possessing a valid account or API key on a service that accepts image uploads. No special non-default configuration is required; EXIF decoding is standard behavior in libvips's image loading path. Exploitation is strictly limited to availability impact (process crash); there is no known path to code execution, data exfiltration, or integrity compromise from this vulnerability.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N) scores this at 6.8, modeling it as a local, low-privilege, low-complexity crash with no confidentiality or integrity impact. The local attack vector (AV:L) warrants scrutiny: libvips is predominantly deployed as a server-side image processing library where untrusted images arrive via network upload interfaces (e.g., web application file upload endpoints backed by Node.js sharp). In those deployments, an attacker with any ability to submit an image - often requiring only a registered account (PR:L equivalent at the application layer) - can trigger the crash remotely through the application, elevating the practical network exposure beyond what AV:L alone implies. However, the impact ceiling is firmly DoS: no confidentiality or integrity impact is present, and no code execution path has been identified. EPSS data is absent from the provided intelligence; active exploitation is not confirmed and KEV status is negative. No public exploit code has been identified at time of analysis, though the patch diff makes the vulnerable code path trivially identifiable for researchers.

Exploit ScenarioDerived

An attacker with access to an image upload endpoint backed by a libvips 8.18.1 or earlier deployment submits a crafted JPEG or TIFF containing an EXIF IFD index value outside the valid range recognized by libexif. When the application processes the upload through libvips's EXIF decoder, the unvalidated IFD index is passed directly to libexif's array lookup, triggering a null pointer dereference that crashes the libvips worker process and causes a denial of service. No public exploit code has been identified, but the vulnerability is trivially reproducible by inspecting the public patch diff at https://github.com/libvips/libvips/pull/4972.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 20, 2026

Denial of service in libvips 8.18.1 and earlier arises from the EXIF decoder's failure to validate Image File Directory (IFD) index values before passing them to libexif, enabling a crash via null pointer dereference when a crafted image with an out-of-range IFD tag group index is processed. All platforms running libvips through its EXIF parsing path are affected, including downstream consumers such as Node.js sharp and other language bindings that link against libvips. No public exploit has been identified and active exploitation is not confirmed, but the fix is publicly visible and the crash condition is straightforward to reproduce.

RemediationAI

Upgrade libvips to version 8.18.2, which contains the bounds check fix for the IFD range validation (commit 91ebd4d35341a8353ea490392d556d582e4b846f; advisory GHSA-jmwm-wc68-mhwm at https://github.com/libvips/libvips/security/advisories/GHSA-jmwm-wc68-mhwm). Downstream consumers such as Node.js sharp should upgrade to a release that bundles libvips 8.18.2 or later. For deployments that cannot upgrade immediately, stripping EXIF metadata from all untrusted image inputs before they reach libvips is an effective compensating control - tools such as ExifTool (exiftool -all= input.jpg) or ImageMagick (convert -strip input.jpg output.jpg) can sanitize inputs at an ingestion layer; the trade-off is added processing latency and loss of legitimate EXIF data (GPS, camera model, orientation) that downstream applications may depend on. Restricting the set of image sources to trusted, internally-generated files eliminates the attack surface entirely where feasible.

Affected VersionsENISA

libvips ≤ 8.18.1

Affected Packages

euvd libvips no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libvips (CPE: cpe:2.3:a:libvips:libvips:*:*:*:*:*:*:*:*) is a C image processing library that delegates EXIF metadata parsing to libexif. EXIF metadata is organized into Image File Directories (IFDs), each addressed by an integer index. The vulnerable function vips_exif_image_field in libvips/foreign/exif.c used the caller-supplied IFD index directly as an array subscript without checking whether it fell within the valid range [0, EXIF_IFD_COUNT). A crafted EXIF payload embedding an out-of-range IFD index therefore passed an invalid value into libexif's IFD array lookup, triggering a null pointer dereference (crash). The reporter classifies this as CWE-122 (Heap-based Buffer Overflow) and tags it as both a heap overflow and DoS; the CVE description characterizes the outcome as a null pointer dereference. The discrepancy likely reflects that the out-of-bounds index can result in either a heap read past the IFD array boundary or a null dereference depending on libexif's internal layout - both outcomes terminate the process. The fix, introduced in commit 91ebd4d, adds a two-line guard: if (ifd < 0 || ifd >= EXIF_IFD_COUNT) { return NULL; } immediately before the array access.

Know when Libvips gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.5 MEDIUM

Local attack vector and low privileges align with PR:L in CVSS 4.0; pure availability crash with no confidentiality or integrity impact supports C:N/I:N/A:H.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

libvips is a fast image processing library with low memory needs. The EXIF decoder within libvips versions before and including 8.18.1 was not verifying the range of EXIF tag groups before passing data to libexif, leading to a possible null pointer dereference and crash. This has been patched in version 8.18.2.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
popular image processing library, widely used via Node.js sharp
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2019-17534 HIGH POC
8.8 Oct 13

vips_foreign_load_gif_scan_image in foreign/gifload.c in libvips before 8.8.2 tries to access a color map before a DGifG

CVE-2018-7998 HIGH POC
7.5 Mar 09

In libvips before 8.6.3, a NULL function pointer dereference vulnerability was found in the vips_region_generate functio

CVE-2026-33327 HIGH POC
7.0 Jul 20

Heap-based buffer overflow in libvips through version 8.18.0 lets an attacker who supplies a crafted image to the vipslo

CVE-2021-27847 MEDIUM POC
6.5 Jul 15

Division-By-Zero vulnerability in Libvips 8.10.5 in the function vips_eye_point, eye.c#L83, and function vips_mask_point

CVE-2026-3145 MEDIUM POC
5.3 Feb 25

Memory corruption in libvips up to version 8.18.0 affects the matrix file loading functionality, allowing local attacker

CVE-2020-20739 MEDIUM POC
5.3 Nov 20

im_vips2dz in /libvips/libvips/deprecated/im_vips2dz.c in libvips before 8.8.2 has an uninitialized variable which may c

CVE-2026-3283 LOW POC
3.3 Feb 27

A vulnerability has been found in libvips 8.19.0. This issue affects the function vips_extract_band_build of the file li

CVE-2026-3282 LOW POC
3.3 Feb 27

A flaw has been found in libvips 8.19.0. This vulnerability affects the function vips_unpremultiply_build of the file li

CVE-2026-3146 LOW POC
3.3 Feb 25

A vulnerability has been found in libvips up to 8.18.0. The impacted element is the function vips_foreign_load_matrix_he

CVE-2026-35591 HIGH POC
7.0 Jul 20

Heap buffer overflow in libvips' tiffload operation (versions ≤ 8.18.1) lets an attacker who supplies a crafted TIFF ima

CVE-2026-33328 MEDIUM POC
6.8 Jul 20

Integer overflow in libvips gifload on 32-bit platforms allows an attacker who can supply crafted GIF images to cause in

CVE-2026-3281 LOW POC
1.9 Feb 27

Heap-based buffer overflow in libvips 8.19.0's vips_bandrank_build function can be triggered by manipulating the index a

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy