Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
影響: pip:Pillow <= 12.3.0 → 13.0.0
On main, even with the guard in #9725, it's possible to have these decoders read 1 to 3 bytes past the end of the passed buffer with a suitable width/height. Details ImagingRawDecode and the P;2L / P;4L unpackers disagree about how many bytes a line of data occupies. The raw decoder derives the line size from the bits per pixel c state->bytes = (state->xsize state->bits + 7) / 8; and uses it both for the bounds check and to advance to the next line. For P;2L and P;4L, bits is 2 and 4 re…
| CVE | CVE-2026-112394 |
|---|---|
| 来源 | GitHub Advisory Database |
| 获取时间 | 2026/10/22 05:20 |
| 数据 | Markdown JSON |
2026/10/22 05:00,GitHub Advisory Database 发布了“Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Python。CVE:CVE-2026-112394。