THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-fc9g-5qg7-mf45 (medium) — Pillow: Quadratic GIF comment copying during save

[GHSA] GHSA-fc9g-5qg7-mf45 (medium) — Pillow: Quadratic GIF comment copying during save

highgithub_advisoriesPublished 2026-10-21

GHSA-fc9g-5qg7-mf45 Severity: medium CVE: CVE-2026-112891

Pillow: Quadratic GIF comment copying during save

On Pillow 12.3.0 and upstream `main` (`ad277e2761b489681e71b51e91367d46b0ceabb9`), a GIF with a long comment makes `_get_global_header()` copy portions of the comment repeatedly when saving, including comments carried over from untrusted images. I suggest provisional **Moderate** severity

Indicators of compromise

Original source: https://github.com/advisories/GHSA-fc9g-5qg7-mf45