Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft TIFF with JPEG/JP2K tile
-
DeliverySubmit image to libvips tiffload
-
ExploitComponent count mismatch bypasses sizing
-
ExecutionOverflow heap tile buffer
-
ImpactCorrupt memory, crash or potential code execution
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 | The target application must process an attacker-supplied TIFF image with libvips ≤ 8.18.1 via the tiffload path, and that TIFF must contain JPEG- or JPEG2000-compressed tiles where the codec's component count differs from the TIFF's photometric_interpretation-derived bytes-per-pixel - that metadata/codec mismatch IS the trigger. No special non-default libvips configuration is required beyond having TIFF decoding enabled. Limiting factors: exploitation is confined to the TIFF loader (plain JPEG/PNG/etc. inputs are unaffected), the vendor vector specifies AV:L/PR:L implying local access with some privilege, and turning memory corruption into code execution (versus a crash/DoS) is not demonstrated in available data. |
| Impact | The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H, base 7.0) rates this a local, low-privilege issue with high integrity and availability impact and only low confidentiality impact - consistent with a memory-corruption bug that is more likely to crash or corrupt state than to leak data. There is tension worth flagging: the vector uses AV:L/PR:L, but the actual trigger is processing a malicious image file, which in real deployments (image upload/thumbnail pipelines built on libvips or sharp) is frequently reachable by remote, unauthenticated users - so real-world attack surface may be broader than AV:L implies; verify against your own deployment. No EPSS score, KEV listing, or SSVC decision data was provided, and no public exploit is known, so this currently reads as a patch-worthy memory-safety defect rather than an actively exploited emergency. Reliable code execution from this class of heap overflow is non-trivial and not demonstrated in the available data. |
| Exploit ScenarioDerived | An attacker uploads a specially crafted TIFF file whose tiles are JPEG- or JPEG2000-encoded and whose inner codec reports more color components than the TIFF photometric metadata declares. When a service backed by libvips (e.g. an image-resize or thumbnail endpoint) calls tiffload on the file, the decoder writes past the allocated heap buffer, corrupting memory and at minimum crashing the worker. No proof-of-concept is publicly available at time of analysis, and low attack complexity with no user interaction makes the file itself the entire delivery mechanism. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Heap buffer overflow in libvips' tiffload operation (versions ≤ 8.18.1) lets an attacker who supplies a crafted TIFF image trigger memory corruption during decode. The flaw stems from libvips incorrectly determining the channel/component count of a JPEG- or JPEG2000-encoded tile embedded in a TIFF, so the pixel buffer is sized from the TIFF photometric metadata while more components are written from the codec. No public exploit has been identified at time of analysis; the issue is fixed in 8.18.2.
RemediationAI
Vendor-released patch: 8.18.2 - upgrade libvips to 8.18.2 or later, which adds the component-count validation for JPEG and JP2K tiles (fix PR https://github.com/libvips/libvips/pull/4973, commit df044e409a0db77c980fa1a9f86a13fbfb2dc8fe). If you consume libvips indirectly (e.g. via 'sharp' or OS packages), rebuild or update those packages against a patched libvips. Where immediate upgrade is not possible, the practical compensating control is to restrict which images reach tiffload: reject or do not route TIFF inputs to libvips (or disable the TIFF loader in your pipeline), since the bug is specific to JPEG/JP2K-in-TIFF decoding - the trade-off is loss of TIFF support for legitimate users. Additionally, sandbox/resource-limit the image-processing workers (separate process, seccomp, memory limits) so a corrupted heap is contained to a crash rather than the host; this adds operational overhead but limits blast radius. See GHSA-523x-vhfw-6r76 for details.
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 embedded C image-processing library (notably the engine behind the Node.js 'sharp' package and many server-side thumbnailers). The bug lives in the TIFF reader (tiff2vips.c) where TIFF tiles may themselves be compressed with JPEG or JPEG2000. libvips derives bytes-per-pixel from the TIFF's photometric_interpretation tag, but the actual number of color components is decided by the inner JPEG/JP2K codec. When these disagree, the decompressed tile writes more channels than the destination buffer was allocated for, producing a classic CWE-122 heap-based buffer overflow. The fix adds explicit validation: tiff2vips.c now rejects tiles where cinfo->output_components != bytes_per_pixel, and jp2kload.c hardens its component/geometry/precision checks (including numcomps vs out->Bands) via the refactored vips_foreign_load_jp2k_check_supported().
Know when Libvips gets its next vulnerability
- 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:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
Malicious images commonly reach libvips-backed upload/thumbnail pipelines unauthenticated, so AV:N/PR:N; heap overflow yields high integrity/availability impact but no direct data disclosure, so C:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
libvips is a fast image processing library with low memory needs. The tiffload operation in libvips versions before and including 8.18.1 could incorrectly determine the number of channels in a JPEG or JPEG2000-encoded tile within a TIFF image, leading to a possible buffer overflow. This has been patched in version 8.18.2.
Executive ViewAI
libvips, a widely-used image processing library, has a critical heap buffer overflow vulnerability affecting versions 8.18.1 and earlier. Any organization running applications that process TIFF images-particularly those handling untrusted user uploads or third-party content-faces risk of service disruption and potential unauthorized code execution.
Apply vendor patch.
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
vips_foreign_load_gif_scan_image in foreign/gifload.c in libvips before 8.8.2 tries to access a color map before a DGifG
In libvips before 8.6.3, a NULL function pointer dereference vulnerability was found in the vips_region_generate functio
Heap-based buffer overflow in libvips through version 8.18.0 lets an attacker who supplies a crafted image to the vipslo
Division-By-Zero vulnerability in Libvips 8.10.5 in the function vips_eye_point, eye.c#L83, and function vips_mask_point
Memory corruption in libvips up to version 8.18.0 affects the matrix file loading functionality, allowing local attacker
im_vips2dz in /libvips/libvips/deprecated/im_vips2dz.c in libvips before 8.8.2 has an uninitialized variable which may c
A vulnerability has been found in libvips 8.19.0. This issue affects the function vips_extract_band_build of the file li
A flaw has been found in libvips 8.19.0. This vulnerability affects the function vips_unpremultiply_build of the file li
A vulnerability has been found in libvips up to 8.18.0. The impacted element is the function vips_foreign_load_matrix_he
Denial of service in libvips 8.18.1 and earlier arises from the EXIF decoder's failure to validate Image File Directory
Integer overflow in libvips gifload on 32-bit platforms allows an attacker who can supply crafted GIF images to cause in
Heap-based buffer overflow in libvips 8.19.0's vips_bandrank_build function can be triggered by manipulating the index a
EUVD-2026-46004
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB