{"id":"CVE-2026-96642","published":"2026-10-21T20:49:56Z","modified":"2026-10-30T16:07:09Z","title":"Pillow: TarIO negative size field causes infinite CPU-spin loop","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00395,"percentile":0.34464,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/10012","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71d","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":6.89},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-30T16:07:02.731167Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-3j72-p6qg-6xp7","PYSEC-2026-4341"],"provenance":"source"}],"summary":{"text":"Pillow's TarIO class, in src/PIL/TarIO.py, fails to reject a negative member size in an octal tar header, so its initializer computes a backward seek to the same header and loops forever on a non-matching member name. An attacker who can get an application that directly uses PIL.TarIO.TarIO to parse a crafted tar file can exhaust a CPU core, though the flaw is not reached through the default Image.open() path and only affects Pillow versions before 13.0.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:28Z"},"euvd":{"id":"EUVD-2026-107561","exploited":false,"provenance":"source"}}