CVE-2026-35591

Possible heap-based buffer overflow when decoding TIFF image containing well-crafted tile

Published Jul 20, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A heap‑based buffer overflow occurs in libvips’s tiffload path when reading JPEG or JPEG2000‑encoded tiles inside a TIFF image. The library miscalculates the buffer size needed for a tile, causing a write past the allocated area. This flaw is a low‑level memory corruption bug classified as CWE‑122, which can lead to program crashes, data corruption.

Affected Systems

The flaw affects libvips image‑processing library versions up to and including 8.18.1. Any application that imports libvips and processes TIFF files via the tiffload function is at risk. Versions 8.18.2 and later include the patch that corrects the buffer‑size calculation and mitigate the vulnerability.

Risk and Exploitability

The CVSS score of 7 indicates high severity. The EPSS score is < 1%, signifying a very low yet non‑zero chance of exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a malicious TIFF file that is fed to an application using libvips for image decoding. The attack vector is inferred as processing untrusted input locally or via the application, as the description does not state a remote channel of attack.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libvips to version 8.18.2 or later to apply the buffer‑size calculation fix.
  • If an upgrade is not yet possible, either disable the tiffload call for untrusted input or preprocess the TIFF tiles to verify channel counts before passing them to libvips.
  • Actively monitor applications that use libvips for abnormal crashes or signs of memory corruption and apply future vendor patches or advisories promptly.

Generated by OpenCVE AI on August 1, 2026 at 07:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6552-1 vips security update
Ubuntu USN Ubuntu USN USN-8994-1 libvips vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:libvips:libvips:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Libvips
Libvips libvips
Vendors & Products Libvips
Libvips libvips
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Possible heap-based buffer overflow when decoding TIFF image containing well-crafted tile
Weaknesses CWE-122
References
Metrics cvssV4_0

{'score': 7, 'vector': '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'}

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 5:44 PM
Reserved
Apr 3, 2026, 9:25 PM
Status
Analyzed
Published
Jul 20, 2026, 5:17 PM
Modified
Aug 19, 2026, 7:10 PM