Skip to main content

libvips EUVDEUVD-2026-63652

| CVE-2026-70652 LOW
Buffer Over-read (CWE-126)
2026-08-20 security-advisories@github.com
2.0
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted JPEG to libultrahdr-enabled pipeline
  2. Delivery
    Trigger image enlargement before UltraHDR encoding
  3. Exploit
    Undersized buffer allocated via incorrect arithmetic
  4. Execution
    Heap over-read in vips_foreign_save_uhdr_set_raw_hdr
  5. Impact
    Leak adjacent heap data or crash process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer over-read prevention
Exploitation Conditions

Four specific conditions must all be met: (1) libvips must be compiled with libultrahdr support, which is a non-default, opt-in build configuration; (2) the application pipeline must specifically invoke the VipsForeignSaveUhdr save class and route through the gain-map encoding path in vips_foreign_save_uhdr_set_raw_hdr; (3) the input JPEG must be crafted or structured such that the pipeline enlarges it to a very large output before uhdr encoding - normal-sized inputs do not trigger the condition; (4) the attacker must have local or application-level access to submit image inputs to the processing pipeline (CVSS PR:L, AV:L). Exploitation is not possible against default libvips builds, is not possible via direct network access without an application intermediary, and requires high attack complexity (AC:H) to construct a sufficiently triggering input. Limiting factors: non-default build flag, specific pipeline routing, and local/application-layer access requirement.

Impact

The CVSS 4.0 base score of 2.0 is internally consistent with the described behavior and accurately reflects the constrained real-world risk. Local attack vector (AV:L) and high complexity (AC:H) together cap practical exploitability: an attacker must be able to submit crafted JPEG inputs to a libvips pipeline that is both compiled with libultrahdr support and routes through the UltraHDR gain-map path - a non-default, purpose-specific configuration. Impact is limited to low confidentiality (heap content disclosure) and low availability (process crash), with no integrity or subsequent-system impact. There is no CISA KEV listing and no public exploit code identified at time of analysis. EPSS data was not provided; exploitation probability is inferred as low given the AV:L/AC:H combination. Operators running libvips in server-side image processing services that accept untrusted files and are built with libultrahdr support carry the most meaningful exposure, and for them a single-version patch upgrade fully resolves the issue without requiring emergency response. This is not a prioritization candidate for most environments.

Exploit ScenarioDerived

An attacker with the ability to submit crafted JPEG images to a libvips-powered service - such as a thumbnail generator or media transcoder built with libultrahdr support - could supply an image engineered to trigger the pipeline enlargement path into VipsForeignSaveUhdr. The resulting undersized heap allocation causes an over-read that may leak adjacent heap contents (potentially exposing in-process sensitive data) or crash the worker process. No public proof-of-concept code has been identified at time of analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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

Heap buffer over-read in libvips prior to 8.18.3 allows disclosure of adjacent heap memory or process crash when processing JPEG images through the UltraHDR save pipeline. The flaw in vips_foreign_save_uhdr_set_raw_hdr stems from using raw pixel dimension arithmetic instead of the library's safe VIPS_IMAGE_N_PELS macro to size an output buffer, producing an undersized allocation when a pipeline enlarges an incoming JPEG before gain-map encoding. No active exploitation is confirmed (not in CISA KEV), no public exploit code exists, and a vendor-released patch is available in v8.18.3.

RemediationAI

Upgrade to libvips 8.18.3 or later, available at https://github.com/libvips/libvips/releases/tag/v8.18.3. The specific fix is in PR #5039 (commit cff17794f0698a4f47c74bb31c9700b2c83252a8), which corrects the buffer sizing arithmetic in vips_foreign_save_uhdr_set_raw_hdr by replacing the raw dimension multiplication with the VIPS_IMAGE_N_PELS macro. If an immediate upgrade is not feasible, two compensating controls are available: (1) rebuild libvips without libultrahdr support, which eliminates the vulnerable code path entirely at the cost of losing UltraHDR output format capability; or (2) at the application layer, disable or block any pipeline that routes user-controlled images through the VipsForeignSaveUhdr save class. Neither workaround has significant operational side effects beyond the loss of UltraHDR encoding functionality. The vendor advisory is at https://github.com/libvips/libvips/security/advisories/GHSA-h27h-jf9v-m8rg.

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 widely used C image processing library with bindings for Python, Ruby, PHP, and other languages. The vulnerability is confined to builds compiled with optional libultrahdr support, affecting the UltraHDR format save path in libvips/foreign/uhdrsave.c. The root cause (CWE-126, Buffer Over-read) is an arithmetic defect at approximately line 188 of vips_foreign_save_uhdr_set_raw_hdr: the original code allocated image->Xsize * image->Ysize * 8 bytes, which can yield an undersized buffer for very large images due to the direct multiplication not accounting for internal image representation nuances. The fix in commit cff17794 replaces this with 8 * VIPS_IMAGE_N_PELS(image), using the library's purpose-built macro for safe pixel-count calculation. The CVSS 4.0 vector (AV:L/AC:H/PR:L) confirms local-only attack surface with high complexity, consistent with a crafted-input attack against a non-default build configuration.

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

Local vector and high complexity reflect the opt-in libultrahdr build requirement and crafted-input trigger; PR:L matches the authenticated local/application user needed to submit images.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
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 with libultrahdr support can incorrectly size an output buffer in libvips/foreign/uhdrsave.c within vips_foreign_save_uhdr_set_raw_hdr when a pipeline enlarges an incoming JPEG to a very large output before encoding a gain map through VipsForeignSaveUhdr. The undersized allocation can cause a heap buffer over-read that may disclose adjacent data or crash the process. 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 with broad language bindings
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low
Technical Impact
Partial

Priority Score

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

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