Skip to main content

libvips EUVDEUVD-2026-46000

| CVE-2026-33327 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-07-20 GitHub_M
7.0
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft VIPS image with overflowing dimensions
  2. Delivery
    Feed file to vipsload operation
  3. Exploit
    Integer overflow in size calculation
  4. Execution
    Undersized heap allocation
  5. Persist
    Out-of-bounds heap write
  6. Impact
    Memory corruption or code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
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

Exploitation requires the target application to invoke the vipsload native-format loader on an attacker-supplied image whose dimension/band metadata is crafted so that element-size * bands * width * height overflows during the VIPS_IMAGE_SIZEOF_IMAGE calculation in libvips <= 8.18.0. Limiting factors per the vendor CVSS 4.0 vector: local attack vector (AV:L) and low privileges (PR:L) - the attacker must already be able to place or feed a malicious file into the vips processing path - with no user interaction required (UI:N). Note the practical caveat: in web pipelines that route untrusted uploaded images through vips, the effective vector can be network-facing despite the AV:L rating, so defenders should confirm how images reach vipsload in their deployment.

Impact

Signals are moderate and internally consistent rather than alarming. The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N, VC:L/VI:H/VA:H) scores 7.0: local vector, low privileges, no user interaction, with high integrity and availability impact but no scope change. No EPSS score, no SSVC decision, no CISA KEV listing and no public POC were provided, so this reads as a memory-safety bug fixed proactively rather than one under active exploitation. The most important caveat is the attack vector: the vendor marks AV:L, but libvips is frequently exposed to untrusted images arriving over the network (web upload pipelines via sharp), where the practical vector would be AV:N - teams that pass web-sourced images through vipsload should treat reachability as higher than the local vector implies and verify intended usage with the advisory. Because the overflow yields heap corruption, worst-case impact could extend beyond crashes toward code execution, though only integrity/availability (not confidentiality) are rated high.

Exploit ScenarioDerived

An attacker crafts a VIPS-format image whose header advertises dimensions and band counts chosen so that width * height * bands * element-size overflows 64-bit arithmetic. When an application loads that file with the vipsload operation, libvips allocates a buffer from the wrapped-around (too-small) size and then writes full image data into it, corrupting the heap. No public POC is available at time of analysis, and per the vendor CVSS the attacker needs local access with low privileges.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

Heap-based buffer overflow in libvips through version 8.18.0 lets an attacker who supplies a crafted image to the vipsload operation corrupt heap memory. The library incorrectly computes image dimensions, allowing an integer overflow (CWE-190) in the element/pel/line/image size calculation that produces an undersized allocation followed by an out-of-bounds write. There is no public exploit identified at time of analysis and it is not in CISA KEV; the issue is fixed in 8.18.1. CVSS 4.0 base score is 7.0 with high integrity and availability impact.

RemediationAI

Vendor-released patch: 8.18.1 - upgrade libvips to 8.18.1 or later, which adds explicit g_uint64_checked_mul() dimension-overflow guards in the image build/sanity path (PR https://github.com/libvips/libvips/pull/4934, commit https://github.com/libvips/libvips/commit/61e71c13328ed72d0a530dffc19b9b225072bdf9). Rebuild or update any downstream package that statically links or bundles libvips (for example, ensure 'sharp' is on a release built against 8.18.1+). Where immediate patching is not possible, restrict the vipsload operation to trusted inputs only and validate/normalize image dimensions before processing untrusted uploads; note the trade-off that pre-validation cannot fully replicate the library's internal checks and may reject legitimate large images. Consult GHSA-2fcj-gj27-279x for the authoritative fix details.

Affected VersionsENISA

libvips ≤ 8.18.0

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 is a widely embedded C image-processing library (notably the engine behind the Node.js 'sharp' module) that emphasizes low memory use via demand-driven pipelines. The flaw sits in the image sanity/build path in libvips/iofuncs/image.c: the VIPS_IMAGE_SIZEOF_ELEMENT/PEL/LINE/IMAGE macros multiply element size by bands, Xsize (width) and Ysize (height) as 64-bit values with no overflow guard. When the vipsload native-format loader accepts attacker-controlled dimension metadata, the product es * bands * width * height can wrap around, so a buffer sized from the wrapped value is later written past its bounds - the classic CWE-190 integer-overflow-to-heap-overflow pattern. The patch (PR #4934, commit 61e71c13) adds g_uint64_checked_mul() checks and a G_MAXSIZE-16 bound for SETBUF images, emitting a 'dimension overflow' sanity error instead of allocating.

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 7.0 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.3 HIGH

Matches vendor local vector: attacker feeds a crafted image to vipsload with low privileges and no interaction; heap overflow yields high integrity/availability impact but no scope change.

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

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
Low
Vulnerable system: Integrity
High
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 vipsload operation in versions before and including 8.18.0 could incorrectly determine image dimensions leading to an integer overflow and a subsequent heap-based buffer overflow. This has been patched in version 8.18.1.

Executive ViewAI

Why It Matters

libvips, a widely-deployed image processing library in web platforms and content management systems, contains a memory corruption vulnerability in versions 8.18.0 and earlier that enables remote attackers to trigger denial-of-service or data corruption through crafted images, with no public exploit identified at time of analysis. Organizations using affected versions face immediate availability and data integrity risks, particularly those handling untrusted user-supplied images. Vendor patch to version 8.18.1 is available and should be deployed within 30 days.

Business Impact: High
Compensating Controls

Apply vendor patch: libvips 8.18.1 or later.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
widely embedded image library, engine behind popular Node.js 'sharp' module
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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

55
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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-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-35590 MEDIUM POC
6.8 Jul 20

Denial of service in libvips 8.18.1 and earlier arises from the EXIF decoder's failure to validate Image File Directory

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