{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "8.18.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "df044e409a0db77c980fa1a9f86a13fbfb2dc8fe"
            }
          ],
          "repo": "https://github.com/libvips/libvips",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-523x-vhfw-6r76"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35591.json"
  },
  "details": "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.",
  "id": "CVE-2026-35591",
  "modified": "2026-07-25T03:56:37.049878900Z",
  "published": "2026-07-20T16:24:50.831Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35591.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-35591"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libvips/libvips/commit/df044e409a0db77c980fa1a9f86a13fbfb2dc8fe"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libvips/libvips/pull/4973"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Possible heap-based buffer overflow when decoding TIFF image containing well-crafted tile"
}