# CVE-2026-112891: Pillow: Quadratic GIF comment copying during save

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-10-19T21:33:32.180Z
- Modified: 2026-10-29T10:45:09.282Z
- Also known as: GHSA-fc9g-5qg7-mf45, BIT-PILLOW-2026-112891
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 9.2.0, < 13.0.0
- pillow (PyPI): from 9.2.0 before 13.0.0
- python pillow: from 9.2.0 before 13.0.0
- pillow (Bitnami): from 9.2.0 before 13.0.0

## Every score

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

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-fc9g-5qg7-mf45> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/68a3fe957d8a4d552e8c69d96066d749f0614c7e> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112891> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-112891](https://www.cve.org/CVERecord?id=CVE-2026-112891), CVE Terms of Use, modified 2026-10-20
- GitHub Advisory Database: [GHSA-fc9g-5qg7-mf45](https://github.com/advisories/GHSA-fc9g-5qg7-mf45), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-112891](https://nvd.nist.gov/vuln/detail/CVE-2026-112891), Public domain, modified 2026-10-27
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-112891](https://osv.dev/vulnerability/BIT-PILLOW-2026-112891), Apache-2.0, modified 2026-10-29

---

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