# CVE-2026-96637: Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-10-21T21:01:20.249Z
- Modified: 2026-10-29T10:55:56.102Z
- Also known as: GHSA-g842-9rc4-69pw, BIT-PILLOW-2026-96637, PYSEC-2026-4338
- Weaknesses: CWE-400, CWE-409
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 13.0.0
- pillow (PyPI): before 13.0.0
- python pillow: before 13.0.0
- pillow (Bitnami): before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-g842-9rc4-69pw> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/10076> (issue-tracking, report, web)
- <https://github.com/python-pillow/Pillow/commit/7cb0e02389d8aac2a60896a490f572db0b07b841> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-96637> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-96637](https://www.cve.org/CVERecord?id=CVE-2026-96637), CVE Terms of Use, modified 2026-10-23
- GitHub Advisory Database: [GHSA-g842-9rc4-69pw](https://github.com/advisories/GHSA-g842-9rc4-69pw), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-96637](https://nvd.nist.gov/vuln/detail/CVE-2026-96637), Public domain, modified 2026-10-27
- PyPA Advisory Database: [PYSEC-2026-4338](https://osv.dev/vulnerability/PYSEC-2026-4338), CC-BY-4.0, modified 2026-10-29
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-96637](https://osv.dev/vulnerability/BIT-PILLOW-2026-96637), Apache-2.0, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-96637 · Whole record: https://cve.day/CVE-2026-96637.json · Rebuilt by cve.day 2026-11-25T22:59:46.693Z
