{"id":"CVE-2026-112399","published":"2026-10-19T21:10:11Z","modified":"2026-10-28T15:21:14Z","title":"Pillow: APNG background disposal allocates full canvas before decompression bomb check","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. From 8.1.0 until 13.0.0, Pillow can allocate an APNG disposal background at the full canvas size before applying the decompression-bomb check. A crafted APNG with a small first frame, a very large declared canvas, and background disposal or first-frame OP_PREVIOUS reaches PngImageFile._seek while Image.open() positions frame zero. The full-canvas allocation occurs inside Image.open() without requiring pixel loading or frame iteration. This can exhaust memory and deny service. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.45451,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xm2-6676-qcp9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/f1acfc54c53502948d0d14121872061df931db48","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":9.09},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 8.1.0, < 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-28T15:21:08.274556Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=8.1.0, <13.0.0"],"patched":["13.0.0"],"from":["GHSA-5xm2-6676-qcp9"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, has a flaw in its APNG handling from version 8.1.0 through 13.0.0: it allocates an APNG disposal background at the full declared canvas size before the decompression-bomb check runs, so opening a crafted APNG can trigger that allocation during Image.open(). An remote attacker needs only to supply a crafted APNG file with a small first frame, a very large canvas, and background disposal or OP_PREVIOUS on the first frame, requiring no authentication or user interaction beyond the application opening the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:03Z"},"euvd":{"id":"EUVD-2026-104635","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-pillow-pillow-cve-2026-25990","children":[{"from":"CVE-2026-112399","to":"CVE-2026-96639","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PIL/DcxImagePlugin.py","src/PIL/MicImagePlugin.py","src/PIL/MpoImagePlugin.py"],"commits":["https://github.com/python-pillow/Pillow/commit/f1acfc54c53502948d0d14121872061df931db48","https://github.com/python-pillow/Pillow/commit/78d97d994579aef81aafe123773d525f40f2522a"],"basis":"shared function","functions":["seek"]}]}]}}