{
  "id": "CVE-2026-59198",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59198",
  "published_at": "2026-07-14T16:07:56.562Z",
  "title": "Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images",
  "vendor": "python-pillow",
  "product": "Pillow",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generated TGA file. This issue is fixed in version 12.3.0.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.5,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "python-pillow",
        "product": "Pillow",
        "ranges": [
          "\u003e= 5.2.0, \u003c 12.3.0"
        ],
        "fixed_in": [
          "12.3.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Pillow to 12.3.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-fj7v-r99m-22gq"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python-pillow/Pillow/pull/9709"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python-pillow/Pillow/commit/eada3cbd7fb9963ee90673fb7b5270124a0d5f4b"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/python-pillow/Pillow/releases/tag/12.3.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
