{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.3.0"
                  },
                  {
                    "fixed": "13.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "53318b50e8e9e85a57d033d4d879e1398d97aeb1"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ec5f1cbcf67275641abaad5c065ffb64a0a804a9"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "13.0.0",
                "range": [
                  {
                    "fixed": "293218ad059d994baf1777d882911bed6a49704a"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "b1b88cf4d255c4b9faf1dae05faaa78091268cb1"
            },
            {
              "fixed": "293218ad059d994baf1777d882911bed6a49704a"
            },
            {
              "fixed": "53318b50e8e9e85a57d033d4d879e1398d97aeb1"
            },
            {
              "fixed": "ec5f1cbcf67275641abaad5c065ffb64a0a804a9"
            }
          ],
          "repo": "https://github.com/python-pillow/pillow",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-xcvg-w56q-r89m"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128067.json"
  },
  "details": "Pillow is a Python imaging library. From 2.3.0 through 12.3.0, Pillow applications that save compressed TIFF images through libtiff can pass attacker-controlled image geometry tags to the encoder while allocating its row buffer from the actual image dimensions. The affected TiffImagePlugin._save path allows ImageWidth, ImageLength, or SamplesPerPixel from exif=, tiffinfo=, or a source TIFF IFD to make libtiff consume a larger scanline than the buffer supplied by ImagingLibTiffEncode. This can read heap memory into the generated TIFF or crash the process. When TIFF Predictor 2 is enabled, libtiff can rewrite the oversized scanline in place and corrupt memory beyond the buffer. A carried-over PlanarConfiguration value of 2 instead makes libtiff use a shorter scanline and can produce an undecodable output file, but is not established to cause the out-of-bounds access. This issue is fixed in version 13.0.0.",
  "id": "CVE-2026-128067",
  "modified": "2026-11-14T02:30:37.119402474Z",
  "published": "2026-11-12T22:49:58.221Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/python-pillow/Pillow/releases/tag/13.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128067.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-xcvg-w56q-r89m"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128067"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python-pillow/Pillow/commit/53318b50e8e9e85a57d033d4d879e1398d97aeb1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python-pillow/Pillow/commit/ec5f1cbcf67275641abaad5c065ffb64a0a804a9"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size"
}