Skip to main content

libvips CVE-2026-69242

| EUVDEUVD-2026-63651 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-08-20 security-advisories@github.com
8.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted many-band TIFF to processing pipeline
  2. Delivery
    VipsForeignLoadTiff parses TIFF metadata
  3. Exploit
    Scanline size calculation overflows INT_MAX in vips_image_sanity
  4. Execution
    Guard check bypassed, negative mmap offset computed
  5. Persist
    Read/write adjacent mmap-resident image data
  6. Impact
    Data disclosure via .v output or process crash

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

Exploitation requires that a crafted many-band TIFF file reaches the VipsForeignLoadTiff code path in libvips. Concretely, the attacker must be able to supply input to a libvips-based processing pipeline - typically via a file upload endpoint, a batch processing queue, or direct CLI invocation. The CVSS vector (AV:L/PR:L) indicates local access with low privilege is required; in practice, 'local' maps to any service role that can inject files into the processing pipeline, including unauthenticated web upload endpoints if the service does not pre-filter by format or band count. No special non-default libvips configuration is required - the vulnerability is in the default TIFF loading path. Exploitation is limited by: the need to control the TIFF file contents (not just a URL or filename), the AV:L constraint ruling out purely network-level attacks against libvips directly, and the fact that RCE would additionally require overcoming heap layout non-determinism. Data disclosure and denial-of-service have a lower exploitation bar than code execution.

Impact

The CVSS 4.0 score of 8.4 reflects AV:L/AC:L/PR:L, meaning the attack is local with low complexity and low privilege - in practice, this describes any application context where a low-privileged user can supply a TIFF file to a libvips-powered service, such as an image upload endpoint. The high integrity and availability scores (VI:H/VA:H) are well-founded given that negative-offset mmap writes can corrupt adjacent image data and reliably crash the process. The secondary-system impact metrics (SI:H/SA:H) reflect that libvips is often embedded in multi-tenant or shared services where a process crash or data bleed affects other users' data. No KEV listing and no public POC exist, so exploitation probability is currently speculative; the EPSS score is not provided in the input data, which is a gap. The vendor's own advisory stops short of confirming RCE, which is the honest position given the memory-layout dependency of heap exploitation. However, the combination of write-primitive, mmap context, and no demonstrated mitigations within the library itself means this warrants prompt patching - even a moderately resourced attacker with reliable TIFF upload access has a credible path toward memory corruption. The CVSS AV:L designation may be conservative for services that accept remote image uploads, since from the service's perspective the attack surface is network-reachable; defenders should evaluate their actual exposure based on whether untrusted TIFF files reach libvips from remote sources.

Exploit ScenarioDerived

An attacker uploads a specially crafted TIFF file with an extreme number of image bands to a web application that processes user images with libvips. The crafted band count causes the scanline-size calculation in vips_image_sanity to overflow INT_MAX, bypassing the dimension sanity check; libvips then computes a buffer region using the overflowed value, accessing memory at negative mmap offsets. The result is either a crash that leaks heap layout information or, in environments where the output is written as an uncompressed .v file, disclosure of adjacent image data belonging to other users.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% 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 in libvips prior to 8.18.3 allows an attacker who can supply a crafted many-band TIFF image to evade scanline validation in VipsForeignLoadTiff, producing heap-region miscalculations that enable reads or writes at attacker-controlled negative offsets within mmap-resident allocations. Affected deployments include any pipeline - web applications, batch processors, or CLI tools - that pass untrusted TIFF input through libvips, with confirmed impacts of data disclosure via uncompressed .v output and near-certain process crashes; remote code execution has not been demonstrated but is explicitly not ruled out by the vendor. No public exploit or CISA KEV listing exists at time of analysis; the upstream fix is confirmed in v8.18.3.

RemediationAI

The primary fix is upgrading libvips to version 8.18.3 or later, available at https://github.com/libvips/libvips/releases/tag/v8.18.3. Applications using Node.js sharp should upgrade to a sharp release that vendors libvips >= 8.18.3; check the sharp release notes for the bundled libvips version. For deployments that cannot immediately upgrade, a compensating control is to restrict or reject TIFF uploads at the application layer before they reach libvips - specifically filtering out TIFF files with an unusually high band count (>= 4 bands beyond standard RGBA is atypical for most use cases) using a metadata pre-check. Another workaround is to transcode incoming TIFFs to a safer intermediate format (e.g., JPEG or PNG) using a hardened external tool before handing them to libvips, accepting the trade-off of format conversion overhead and potential quality loss. Sandboxing the libvips process (e.g., via seccomp, a dedicated container, or running under a restricted user) limits blast radius from a crash or exploitation attempt. The upstream fix commit is c72f50927413cd2451837d9813f954bc5d88f548; the GitHub pull request is https://github.com/libvips/libvips/pull/5012.

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

libvips is a C-based image processing library designed for low-memory, high-throughput processing of large images. The vulnerability resides in VipsForeignLoadTiff (the TIFF format loader) and specifically in the vips_image_sanity() function in libvips/iofuncs/image.c. When a TIFF image is constructed with an unusually high number of bands, the per-scanline size calculation (width × bands × bytes-per-sample) can exceed INT_MAX without being caught by the existing sanity check. This is a classic signed integer overflow (CWE-122: Heap-based Buffer Overflow) - the overflowed scanline size yields a negative or near-zero value, which is then used to calculate mmap region bounds, permitting memory accesses at attacker-controlled negative offsets relative to the mmap base. The fix (commit c72f50927413) adds an explicit guard: 'if (ls >= INT_MAX) vips_buf_appends(buf, dimension overflow)'. libvips underpins high-level bindings including Node.js sharp, Ruby Vips, and Python pyvips, so the vulnerable code path is reachable through any of these language ecosystems.

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

AV:L because attacker must supply a file to the local processing pipeline; PR:L for low-privilege file submission; C:L for partial data disclosure; I:H and A:H for memory corruption and reliable crashes.

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:L/SI:H/SA:H
Red Hat 7.8 HIGH

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
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Aug 20, 2026 - 22:04 EUVD
CVE Published
Aug 20, 2026 - 21:17 cve.org
HIGH 8.4

DescriptionCVE.org

libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, a crafted many-band TIFF processed through VipsForeignLoadTiff can evade scanline validation in libvips/iofuncs/image.c and cause an integer overflow in vips_image_sanity. The resulting buffer-region calculation can access attacker-controlled negative offsets in mmap-resident allocations, allowing reads or writes of other image data, possible data disclosure through uncompressed .v output, and likely process crashes. Remote code execution has not been demonstrated but cannot be ruled out. This issue is fixed in version 8.18.3.

Executive ViewAI

Why It Matters

Integer overflow in libvips (CVE-2026-69242) exposes organizations processing untrusted TIFF images to data disclosure and service disruption, affecting web applications, content platforms, batch processors, and any image-handling infrastructure. With CVSS 8.4 severity and no vendor patch currently available, organizations face prolonged risk to system availability and data confidentiality across image workflows while remediation options remain limited.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable TIFF format support in libvips pipelines, implement mandatory TIFF header validation and file type verification before processing, restrict image processing to trusted sources only, isolate image services with network segmentation and resource limits, implement crash detection and alerting, and prepare migration plans to alternative image processing libraries with active security maintenance.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
High
libvips underpins Node.js sharp, used in millions of production image pipelines
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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 No
EPSS 0.2%
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
Partial

Priority Score

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

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

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