{"id":"CVE-2026-112401","published":"2026-10-19T21:15:21Z","modified":"2026-10-20T16:09:15Z","title":"Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. From 5.4.0 until 13.0.0, Pillow performs quadratic copying while parsing GIF comments. GifImageFile._seek() repeatedly appends immutable bytes for comment sub-blocks and multiple comment extensions, and frame zero is parsed during Image.open(). An attacker can submit a small-dimension GIF containing many comment extensions to any application that opens the file. This can consume excessive CPU and deny service before the application can inspect the image. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00649,"percentile":0.52062,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-74r2-7ff9-mjj2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/68a3fe957d8a4d552e8c69d96066d749f0614c7e","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":10.41},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 5.4.0, < 13.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-20T15:19:01.864788Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=5.4.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-74r2-7ff9-mjj2"],"provenance":"source"}],"summary":{"text":"In Pillow, the Python imaging library, GIF comment parsing in GifImageFile._seek() repeatedly concatenates immutable bytes for comment sub-blocks and multiple comment extensions, causing quadratic copying during Image.open() for affected versions from 5.4.0 until 13.0.0. An attacker with network access and no privileges or user interaction can submit a small-dimension GIF with many comment extensions to any application that opens it, consuming excessive CPU and causing denial of service before the application can inspect the image.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:38Z"},"euvd":{"id":"EUVD-2026-104638","exploited":false,"provenance":"source"}}