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…
Read on GitHub Advisory Database
| CVE | CVE-2026-112394 |
|---|---|
| Source | GitHub Advisory Database |
| Fetched | 10/22/2026, 05:20 AM |
| Data | Markdown JSON |
On 10/22/2026, 05:00 AM, GitHub Advisory Database published "Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size" (type: Advisory). Severity is "Medium" (medium). Related technologies: Python. CVE: CVE-2026-112394.