Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain 32-bit libvips deployment
-
Deliverycraft GIF with extreme width/height values
-
Exploitsupply crafted GIF to gifload operation
-
Executionwidth * height overflows 32-bit int
-
Persistincorrect buffer sizing
-
Impactapplication crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
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 strictly requires a 32-bit build of libvips version 8.18.0 or earlier - on 64-bit systems, int arithmetic does not overflow at GIF-scale dimensions and the vulnerability cannot be triggered. The application must invoke the gifload operation on attacker-influenced GIF input. The CVSS vector (PR:L) indicates that low-privilege local access is sufficient, meaning any process or user able to pass image data to the vulnerable library qualifies. Limiting factors: 32-bit platform required, libvips version 8.18.0 or below required, and the application must process untrusted GIF files. There is no remote network vector; this cannot be exploited without the ability to influence the GIF content processed by the library. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H) indicates a local, low-privilege attack with no confidentiality or integrity impact and high availability impact. The most significant risk-reduction factor is the 32-bit platform constraint: modern server and desktop deployments are overwhelmingly 64-bit, where the integer type is wide enough that the overflow cannot occur. Embedded, IoT, or legacy 32-bit environments running libvips represent the realistic attack surface. No CISA KEV listing and no public POC exist at time of analysis, and no EPSS score was provided in the input data, so exploitation probability cannot be quantified. Overall, this is a real vulnerability warranting a patch on affected 32-bit deployments but not an emergency priority for mainstream 64-bit infrastructure. CVSS base score 6.8 (4.0 scale) reasonably reflects the constrained exploitability. |
| Exploit ScenarioDerived | An attacker with the ability to supply a crafted GIF file to an application using libvips on a 32-bit system constructs an image with extreme width and height values whose product exceeds INT_MAX/4. When gifload processes the file, the unguarded integer multiplication wraps around, causing the library to calculate an incorrect buffer size, which leads to a crash and denial of service of the image-processing process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 20, 2026
Integer overflow in libvips gifload on 32-bit platforms allows an attacker who can supply crafted GIF images to cause incorrect buffer sizing and crash the image-processing application. Affected are all libvips builds up to and including 8.18.0 compiled for 32-bit architectures, where multiplying GIF width by height as a native int can wrap past INT_MAX. No public exploit is identified at time of analysis; a vendor-released patch is available in libvips 8.18.1.
RemediationAI
Upgrade to libvips 8.18.1, which resolves the overflow via commit 9b633e45abfcf1fc4c84847007c81805193c0969 (PR #4935). The fix is confirmed upstream and documented in the ChangeLog entry 'gifload: prevent int overflow on 32-bit platforms'. If an immediate upgrade is not feasible on a 32-bit deployment, restrict the application so that GIF input to the gifload operation is sourced only from trusted, validated files - this prevents an attacker from supplying crafted dimension values. Alternatively, disable GIF loading at the application level entirely; note this will break all GIF-handling functionality. The full advisory is at https://github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7.
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 (CPE: cpe:2.3:a:libvips:libvips) is a C image-processing library commonly embedded in web and desktop applications. The flaw resides in libvips/foreign/nsgifload.c, which uses the nsgif backend to decode GIF files. The root cause is CWE-190 (Integer Overflow or Wraparound): on 32-bit systems where int is 32 bits wide, computing width * height as a native int overflows when the product exceeds INT_MAX (2,147,483,647). The original bounds check also used width > 65536 instead of > 65535, slightly widening the accepted range beyond the GIF specification's maximum dimension. The fix in PR #4935 corrects both issues: it tightens the dimension limit to 65535 and adds a pixel-count guard cast to 64-bit arithmetic - (guint64) width * height > INT_MAX / 4 - before any buffer allocation, mirroring a constraint already present in the gifsave path.
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:N/VI:N/VA:H/SC:N/SI:N/SA:N
Local vector and low privilege required because exploitation depends on a 32-bit build and ability to supply crafted GIF input; only availability is impacted.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
libvips is a fast image processing library with low memory needs. On 32-bit systems in versions before and including 8.18.0, the gifload operation could incorrectly determine dimensions leading to an integer overflow. This has been patched in version 8.18.1.
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.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
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
Heap buffer overflow in libvips' tiffload operation (versions ≤ 8.18.1) lets an attacker who supplies a crafted TIFF ima
Denial of service in libvips 8.18.1 and earlier arises from the EXIF decoder's failure to validate Image File Directory
Heap-based buffer overflow in libvips 8.19.0's vips_bandrank_build function can be triggered by manipulating the index a
EUVD-2026-46001
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB