CVEMETERBack to radar
OFFICIAL RECORD · Python packages

CVE-2026-42309

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 5.1 · medium

Pillow: Heap buffer overflow with nested list coordinates

Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.133% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 5.1 · published by GitHub_M
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:58:32.849Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:58:32.849ZCVE Program
epssverified2026-11-19T16:04:50.042ZFIRST EPSS
patchesverified2026-11-19T12:52:18.502ZOSV
affectedverified2026-11-19T12:58:32.849ZCVE Program
lifecycleverified2026-11-19T12:58:32.849ZCVE Program

Affected versions and configuration

python-pillow Pillow; default status: unknown: >= 11.2.1, < 12.2.0 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "python-pillow",
      "product": "Pillow",
      "versions": [
        {
          "status": "affected",
          "version": ">= 11.2.1, < 12.2.0"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-42309",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-05-11T14:48:09.669871Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-05-11T14:48:18.204Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-5xmw-vc9v-4wf2",
  "aliases": [
    "BIT-pillow-2026-42309",
    "CVE-2026-42309",
    "PYSEC-2026-2251"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "11.2.1"
            },
            {
              "fixed": "12.2.0"
            }
          ]
        }
      ],
      "package": {
        "name": "pillow",
        "purl": "pkg:pypi/pillow",
        "ecosystem": "PyPI"
      },
      "versions": [
        "11.2.1",
        "11.3.0",
        "12.0.0",
        "12.1.0",
        "12.1.1"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-5xmw-vc9v-4wf2/GHSA-5xmw-vc9v-4wf2.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
    },
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42309",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82",
      "type": "WEB"
    },
    {
      "url": "https://github.com/python-pillow/Pillow/commit/cf6de8ca9b23e714aa5310e1c791eda66fc0b670",
      "type": "WEB"
    },
    {
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2251.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/python-pillow/Pillow",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/python-pillow/Pillow/releases/tag/12.2.0",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-122"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2026-05-09T06:16:10Z",
    "github_reviewed_at": "2026-05-04T20:18:27Z"
  }
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "PYSEC-2026-2251",
  "aliases": [
    "BIT-pillow-2026-42309",
    "CVE-2026-42309",
    "GHSA-5xmw-vc9v-4wf2"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "11.2.1"
            },
            {
              "fixed": "12.2.0"
            }
          ]
        }
      ],
      "package": {
        "name": "pillow",
        "purl": "pkg:pypi/pillow",
        "ecosystem": "PyPI"
      },
      "versions": [
        "11.2.1",
        "11.3.0",
        "12.0.0",
        "12.1.0",
        "12.1.1"
      ],
      "database_specific": {
        "source": "https://github.com/pypa/advisory-database/blob/main/vulns/pillow/PYSEC-2026-2251.yaml"
      },
      "ecosystem_specific": {}
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/python-pillow/Pillow/releases/tag/12.2.0",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2",
      "type": "ADVISORY"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPyPI / packagepillowNot a distribution channel12.2.0Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history