Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
影響: pip:pillow >= 12.0.0, < 13.0.0 → 13.0.0
Image.merge() checks the mode of every input band except band 0. If band 0 is a single-band I or F image, the native merge routine reads a pixel pointer that is NULL for those modes and the process crashes. The IPTC plugin reaches this from a plain Image.open() followed by a load, and IPTC has no magic-byte prefilter, so a crafted file with no recognizable header can drive it. Details The validation loop skips band 0: - src/PIL/Image.py:3795 iterates for band in bands[1:] and checks mod…
Read on GitHub Advisory Database
| CVE | CVE-2026-112405 |
|---|---|
| Source | GitHub Advisory Database |
| Fetched | 10/22/2026, 05:36 AM |
| Data | Markdown JSON |
On 10/22/2026, 05:30 AM, GitHub Advisory Database published "Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0" (type: Advisory). Severity is "High" (high). Related technologies: Python. CVE: CVE-2026-112405.