PatchSiren cyber security CVE debrief
CVE-2026-96642 python-pillow CVE debrief
CVE-2026-96642 debrief: Pillow's TarIO has an infinite CPU-spin loop vulnerability. A crafted tar header with a negative size field causes TarIO to seek backward indefinitely, leading to 100% CPU usage. This issue affects Pillow versions prior to 13.0.0. Defenders should prioritize verifying and updating Pillow versions to prevent potential denial-of-service attacks. The vulnerability is caused by the lack of a positive check for the size field in tar headers. A negative size field can cause TarIO to loop infinitely.
- Vendor
- python-pillow
- Product
- pillow
- CVSS
- HIGH 7.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-22
- Original CVE updated
- 2026-10-22
- Advisory published
- 2026-10-22
- Advisory updated
- 2026-10-22
Who should care
Defenders responsible for systems using Pillow, especially those processing tar files, should assess exposure and prioritize updates to prevent potential denial-of-service attacks.
Why it matters
CVE-2026-96642 is a vulnerability in Pillow's TarIO class that can cause an infinite CPU loop when processing tar files with negative size fields. Defenders should prioritize verifying and updating Pillow versions to prevent potential denial-of-service attacks.
- Denial of service due to infinite CPU loop
- Potential for exploitation through crafted tar files
- Need for verification of Pillow version and exposure
- Priority for updating to version 13.0.0 or later
Technical summary
The TarIO class in Pillow does not check if a tar header's size field is positive. A crafted header with a negative size field causes TarIO to seek backward onto itself, resulting in an infinite loop that consumes 100% CPU. This issue affects Pillow versions prior to 13.0.0. The vulnerability is caused by the lack of a positive check for the size field in tar headers. A negative size field can cause TarIO to loop infinitely. Defenders should prioritize verifying and updating Pillow versions to 13.0.0 or later, reviewing systems using affected versions for potential exposure, and monitoring for suspicious activity.
Defensive priority
Defenders should prioritize verifying and updating Pillow versions to 13.0.0 or later, reviewing systems using affected versions for potential exposure, and monitoring for suspicious activity.
Recommended defensive actions
- Verify and update Pillow to version 13.0.0 or later
- Review systems using affected Pillow versions for potential exposure
- Monitor for suspicious activity related to tar file processing
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
Evidence notes
The vulnerability is caused by the lack of a positive check for the size field in tar headers. A negative size field can cause TarIO to loop infinitely. This issue affects Pillow versions prior to 13.0.0.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-96642 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-96642
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-96642 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-96642
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Pillow: TarIO negative size field causes infinite CPU-spin loop
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-3j72-p6qg-6xp7.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/pull/10012
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71d
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/releases/tag/13.0.0
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.