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.
Published: 2026-07-20
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Mon, 20 Jul 2026 23:30:00 +0000

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

Mon, 20 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 20 Jul 2026 16:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T17:44:01.158Z

Reserved: 2026-04-03T21:25:12.161Z

Link: CVE-2026-35591

cve-icon Vulnrichment

Updated: 2026-07-20T17:43:55.284Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T07:15:03Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow