Skip to main content

libvips CVE-2026-70653

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

Attack ChainAIDerived

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

  1. Access
    Upload crafted .hdr file
  2. Delivery
    Trigger VipsForeignLoadRad loader
  3. Exploit
    Enter old-style RLE decoder
  4. Execution
    Place repeat marker at scanline offset 0
  5. Persist
    Dereference q[-1] out-of-bounds
  6. Impact
    Leak 4 bytes of adjacent heap data

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 the target application accept and load a Radiance HDR image (.hdr format) through libvips's VipsForeignLoadRad loader. The vulnerable code path activates only when the image uses old-style Radiance scanline encoding and places an RLE repeat marker (the byte sequence RED=1, GRN=1, BLU=1) as the very first element of a scanline. The CVSS 4.0 vector specifies PR:L, indicating low-privilege access is needed to supply the crafted file - anonymous public upload endpoints would lower this bar in practice. Exploitation is limited to a four-byte read leak and does not enable arbitrary memory disclosure, code execution, or availability impact. Applications that do not process Radiance HDR format, or that allowlist accepted MIME types excluding HDR, are entirely unaffected.

Impact

The official CVSS 4.0 score of 4.8 with AV:L/PR:L reflects a conservative, library-isolated perspective. However, libvips is the rendering engine behind the widely-deployed sharp Node.js library and similar bindings, meaning crafted Radiance images can reach scanline_read_old through user-controlled file uploads in web services - effectively a network-reachable vector in most production deployments. The impact is narrow: four bytes of adjacent heap memory are read, most likely containing other image pixel data rather than cryptographic keys, credentials, or pointer-sized secrets. No KEV listing exists, no EPSS data was provided, and no public exploit code has been identified, all pointing to low real-world exploitation risk. The primary priority consideration is whether the application processes untrusted Radiance HDR files; applications that do not accept .hdr input carry zero exposure.

Exploit ScenarioDerived

An attacker uploads a maliciously crafted Radiance HDR image to a web service that uses libvips or sharp for image resizing or conversion. The image encodes a repeat marker as the first pixel sequence of a scanline. When libvips decodes the file, scanline_read_old reads four bytes from the heap preceding the scanline buffer boundary. No public exploit code has been identified, making weaponization non-trivial but not infeasible given a clear root cause and public fix diff.

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

Heap out-of-bounds read in libvips before 8.18.3 leaks four bytes of adjacent heap memory when parsing a crafted Radiance HDR image whose first scanline begins with an RLE repeat marker. The old-style decoder in scanline_read_old dereferences q[-1] without confirming a prior pixel exists, disclosing data most likely belonging to adjacent image buffers. No public exploit or active exploitation has been identified; the fix is confirmed in the v8.18.3 release.

RemediationAI

Upgrade libvips to version 8.18.3 or later, which contains the fix from commit dc945573e15d598054e701c65b90a35b16b19304 (https://github.com/libvips/libvips/commit/dc945573e15d598054e701c65b90a35b16b19304). Applications using sharp should upgrade to a version that bundles libvips 8.18.3 or later. For environments where an immediate upgrade is not feasible, reject or discard Radiance HDR (.hdr) image files at the application input-validation boundary before they reach libvips - this eliminates exposure entirely with no trade-off for applications that do not require HDR processing. The GitHub Security Advisory is at https://github.com/libvips/libvips/security/advisories/GHSA-fh99-55jf-5hj3. No workaround is available short of input filtering; disabling the loader at compile time requires building with ENABLE_DEPRECATED undefined in libvips 8.18.3+.

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 implements Radiance HDR (.hdr) image loading through VipsForeignLoadRad in libvips/foreign/radiance.c. The old-style Radiance RLE decoder scanline_read_old reads 4-byte COLR pixels (RED, GRN, BLU, EXP channels). An RLE repeat marker is signaled by the triplet RED1, GRN1, BLU1, after which the decoder copies from q[-1] to fill repeated pixels. CWE-122 (Heap-based Buffer Overflow) applies because when the repeat marker is the very first element of the scanline, q equals the base pointer of the scanline buffer and q[-1] falls outside the allocation boundary, constituting a heap out-of-bounds read. The fix introduced in PR #5037 adds a guard (if (q scanline) return -1) and additionally deprecates the entire old-style path behind the ENABLE_DEPRECATED compile flag, effectively disabling the vulnerable code path in standard builds.

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

libvips is typically invoked by web services processing untrusted uploads; a crafted HDR file alone triggers the flaw with no authentication or special interaction required.

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

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

Lifecycle Timeline

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

DescriptionCVE.org

libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, the old-style Radiance RLE decoder in libvips/foreign/radiance.c can process a repeat marker at the beginning of a scanline in scanline_read_old and read q[-1] before any prior pixel exists. A crafted Radiance image loaded through VipsForeignLoadRad can therefore disclose four bytes of adjacent heap data, most likely other image data. This issue is fixed in version 8.18.3.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
High
core engine of the widely-used 'sharp' Node.js image library
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 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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Vendor StatusVendor

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