Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
影響: pip:Pillow >= 11.0.0, < 13.0.0 → 13.0.0
A PNG file with a large eXIf chunk full of repeated 6-byte markers makes Pillow's EXIF parser take seconds of CPU instead of milliseconds. The cost grows with the square of the chunk size, so a normal small-photo-sized file is enough to cause real delay. ### Details Exif.load() in src/PIL/Image.py strips a marker from the start of the EXIF data like this: python while data and data.startswith(b"Exif\x00\x00"): data = data[6:] Each pass makes a new copy of the remaining data. A real camera write…
| CVE | CVE-2026-96643 |
|---|---|
| 来源 | GitHub Advisory Database |
| 获取时间 | 2026/10/23 05:09 |
| 数据 | Markdown JSON |
2026/10/23 01:02,GitHub Advisory Database 发布了“Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time”(类型:漏洞公告)。严重程度为“高危”(high)。相关技术:Python。CVE:CVE-2026-96643。