CVE-2026-96637
Description
Pillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
Description as published by the source, in English.
Key facts
- Published
- 2026-10-21
- Last modified
- 2026-10-27
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Python | Pillow | < 13.0.0 | Affected |
Weakness type
-
CWE-400: Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource.
-
CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1499: Endpoint Denial of Service
References
- https://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841
- https://github.com/python-pillow/Pillow/pull/10076
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw
Related at Berigo
Articles
-
A fake CAPTCHA gets the user to open a tunnel into the network
Same product
2026-09-01
Microsoft has tracked the TerminalFix campaign, in which compromised websites show a fake Cloudflare CAPTCHA and ask visitors to paste a command into…
-
The crypto library behind Python now ships quantum-resistant algorithms
Same product
2026-08-18
Trail of Bits has added ML-KEM and ML-DSA to pyca/cryptography, funded by the Sovereign Tech Agency. The library is the eleventh most downloaded pack…
-
Records are being pulled from Salesforce and ServiceNow portals that need no login
Same product
2026-08-14
Reco is tracking an ongoing campaign it calls City-Forum, in which a single tool written in Go pulls records from customer portals in Salesforce Expe…
-
CrashStealer poses as Apple crash reporting and empties the Keychain on Mac
Same product
2026-08-05
Kaspersky has described CrashStealer, a macOS information stealer delivered through a fake videoconferencing installer. The installer is both signed …
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.