Pillow is a Python imaging library. From 9.2.0 until 13.0.0, Pillow performs quadratic copying when saving a GIF with a long comment. _get_global_header() repeatedly copies portions of comment data while assembling the global header, including comments retained from an untrusted input image. An attacker can supply an image with a large GIF comment to an application that saves it as GIF. This can consume excessive CPU and delay or deny service. This issue is fixed in version 13.0.0.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/python-pillow/Pillow/commit/68a3fe957d8a4d552e8c69d96066d749f0614c7e Patch
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-fc9g-5qg7-mf45 Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 8
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-27 14:59
- StatusPublished → AnalyzedNVD modified 2026-10-27 14:59
- StatusUndergoing Analysis → PublishedNVD modified 2026-10-20 13:54
- StatusPublished → Undergoing AnalysisNVD modified 2026-10-20 19:48
- StatusReceived → PublishedNVD modified 2026-10-20 13:54
- StatusPublished → ReceivedNVD modified 2026-10-20 14:16
- StatusReceived → PublishedNVD modified 2026-10-19 21:33
- First seenCVSS 6.9NVD modified 2026-10-19 22:17
Affected (CPE criteria) 1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*