VDB

CVE-2026-96642

CVE-2026-96642 PUBLISHED CVSS 7.1 HIGH

Pillow: TarIO negative size field causes infinite CPU-spin loop

Reported by github_m · Published October 21, 2026

Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
pillowpython13.0.0

Risk scores

CVSS 4.0
7.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
python-pillowPillow< 13.0.0
python-pillowPillow0
chainguardnemo-gym0
chainguardsuperset-fips-6.10
chainguardnemo-rl-cuda-13.00
PyPIPillow0
chainguardpy3-pytorch-cuda-13.00

Timeline

  • Oct 21, 2026 CVE Published
  • Oct 22, 2026 EPSS Score (5 in total, the first dated here)
  • Oct 22, 2026 Coalition ESS Score
  • Oct 30, 2026 CVE Updated
  • Oct 30, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-96642
vulnetix vdb fixes CVE-2026-96642

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-96642/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›