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。