Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted JPEG to libultrahdr-enabled pipeline
-
DeliveryTrigger image enlargement before UltraHDR encoding
-
ExploitUndersized buffer allocated via incorrect arithmetic
-
ExecutionHeap over-read in vips_foreign_save_uhdr_set_raw_hdr
-
ImpactLeak 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-63652
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB