Skip to main content

libvips EUVDEUVD-2026-63653

| CVE-2026-70651 MEDIUM
Integer Overflow to Buffer Overflow (CWE-680)
2026-08-20 security-advisories@github.com
6.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Identify libvips build without libtiff
  2. Delivery
    Supply crafted multi-page TIFF as input
  3. Exploit
    Trigger ImageMagick fallback loader
  4. Execution
    Overflow Ysize × n_frames multiplication
  5. Persist
    Heap over-read past buffer boundary
  6. Impact
    Process crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer-to-buffer conversion safety
Exploitation Conditions

Three conditions must be met simultaneously. First, libvips must have been compiled without libtiff support AND with ImageMagick support - enabling the VipsForeignLoadMagick TIFF fallback; this is explicitly non-default in mainstream package-manager distributions, which ship with libtiff and never reach this code path. Second, the attacker must be able to supply a crafted multi-page TIFF to a process using this affected build, either by direct local file provision or through an application that accepts attacker-controlled image input. Third, the CVSS 4.0 vector specifies PR:L (low privilege), meaning the attacker must have at minimum unprivileged local access to provide input. There is no demonstrated path to arbitrary code execution - exploitation produces only a process crash. The non-default build configuration requirement is the primary factor that limits practical exposure well below what the CVSS base score suggests in isolation.

Impact

The CVSS 4.0 score of 6.9 (AV:L/AC:L/AT:N/PR:L) accurately reflects the constrained exploitability. The local attack vector and low-privilege requirement mean an attacker must either have direct local access or control the input to an application that passes files to the affected libvips build. The most significant risk-limiting factor - which the raw CVSS score does not fully convey - is the non-default build configuration: mainstream Linux distributions and package managers ship libvips with libtiff enabled, making the vulnerable ImageMagick fallback path unreachable in the vast majority of deployments. Availability impact is high (VA:H) because the integer overflow reliably crashes the host process, but there is no demonstrated confidentiality or code-execution impact. No KEV listing and no known POC confirm this has not been observed in active exploitation. The disparity between theoretical CVSS scope and narrow real-world attack surface is the dominant risk nuance here.

Exploit ScenarioDerived

An attacker with the ability to supply a crafted file - either locally or through an application that processes user-provided images with the affected libvips build - submits a multi-page TIFF whose page height and frame count are chosen to overflow the unchecked Ysize * n_frames multiplication. The resulting wrapped dimension causes libvips to read past the end of the allocated heap buffer during frame parsing, crashing the host process. No public exploit code has been identified at time of analysis, and successful exploitation produces only a denial-of-service condition.

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 – Aug 20, 2026

Integer overflow to heap over-read in libvips prior to 8.18.3 crashes the image processing process when a crafted multi-page TIFF is loaded through the ImageMagick fallback path. The unchecked multiplication out->Ysize *= magick->n_frames in vips_foreign_load_magick_parse() wraps on attacker-controlled input, producing an underflowed buffer dimension that drives a subsequent heap over-read and process crash. This flaw is limited to the uncommon build configuration where libtiff support is absent and ImageMagick support is present; no public exploit identified at time of analysis.

RemediationAI

Upgrade to libvips 8.18.3 or later, which resolves the overflow via g_uint64_checked_mul() and a VIPS_MAX_COORD bound check in vips_foreign_load_magick_parse(). The fix is confirmed in commit 05719ca3d5852acdeb6714de2e8e769c9a5d2c11 (PR #5040) and the tagged release at https://github.com/libvips/libvips/releases/tag/v8.18.3. If immediate upgrade is not feasible, the most effective compensating control for affected build configurations is to recompile libvips with libtiff support enabled, which eliminates the vulnerable code path entirely with no functional loss for standard TIFF workloads. As a second option, applications that accept user-supplied files can reject multi-page TIFFs at the application layer before passing them to libvips, though this requires reliable format fingerprinting. Standard package-manager builds are unaffected and require no action.

Affected VersionsENISA

libvips < 8.18.3

Affected Packages

euvd libvips fix: 8.18.3

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

CWE-680 (Integer Overflow to Buffer Overflow) describes the root cause precisely: an unchecked integer multiplication produces a value too small to describe the actual allocation, and downstream memory reads exceed the true buffer boundary. The specific site is vips_foreign_load_magick_parse() in both libvips/foreign/magick6load.c (ImageMagick 6 loader) and libvips/foreign/magick7load.c (ImageMagick 7 loader), where out->Ysize *= magick->n_frames was performed without overflow protection. A crafted multi-page TIFF supplies a page height and frame count whose product overflows the integer type, yielding a small Ysize that causes the heap over-read. The fix in v8.18.3 replaces the bare multiplication with GLib's g_uint64_checked_mul() and validates the result against VIPS_MAX_COORD, returning an error on overflow. This code path (VipsForeignLoadMagick) is only activated when libvips is compiled without native libtiff - a configuration explicitly noted as uncommon in mainstream package-manager builds, which include libtiff and bypass this fallback entirely.

Know when the next one hits your stack

  • 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) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.7 MEDIUM

AC:H reflects the non-default build configuration prerequisite; impact is availability-only (process crash) with no demonstrated confidentiality or integrity effect.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

1
Patch available
Aug 20, 2026 - 22:04 EUVD

DescriptionCVE.org

libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, libvips built without libtiff support but with ImageMagick support can overflow the combined frame height while loading a crafted multi-page TIFF through VipsForeignLoadMagick. The vulnerable calculations in libvips/foreign/magick6load.c and libvips/foreign/magick7load.c multiply the per-page Ysize by n_frames without a checked bound, which can cause a heap buffer over-read and process crash. Most package-manager builds include libtiff and do not use this affected fallback path. This issue is fixed in version 8.18.3.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
widely-used image processing library in web apps and servers
Data Quality
6 sources
Confidence: High

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 No
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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

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

Vendor StatusVendor

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