{"schemaVersion":3,"id":"CVE-2026-96642","aliases":["DEBIAN-CVE-2026-96642","GHSA-3j72-p6qg-6xp7"],"status":"published","duplicateOf":null,"title":"Pillow: TarIO negative size field causes infinite CPU-spin loop","description":"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.","dates":{"published":"2026-10-21T20:49:56.989Z","modified":"2026-10-21T20:49:56.989Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.1,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00333,"percentile":0.25325,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-22T00:00:00.000Z","score":0.00333,"percentile":0.25325}],"last30":[{"date":"2026-10-22T00:00:00.000Z","score":0.00333,"percentile":0.25325}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition ('Infinite Loop')","description":"The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/835.html"}],"affected":[{"vendor":"debian","product":"pillow","name":"pillow","label":"pillow","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pillow","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"PyPI","product":"pillow","name":"pillow","label":"pillow","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pillow","purlType":"pypi","versions":[{"text":"< 13.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.0.0","eol":null,"hubHref":null},{"vendor":"python-pillow","product":"pillow","name":"Pillow","label":"pillow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 13.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.0.0","eol":null,"hubHref":"/vendor/python-pillow/pillow"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7","label":"github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/python-pillow/Pillow/pull/10012","label":"github.com/python-pillow/Pillow/pull/10012","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71d","label":"github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71d","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","label":"github.com/python-pillow/Pillow/releases/tag/13.0.0","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-96642","label":"security-tracker.debian.org/tracker/CVE-2026-96642","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96642","label":"nvd.nist.gov/vuln/detail/CVE-2026-96642","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/python-pillow/Pillow","label":"github.com/python-pillow/Pillow","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-21T20:49:56.989Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T22:13:41.230Z","stale":false,"partial":false}}