CVE-2026-42311 PUBLISHED

Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)

Assigner: GitHub_M
Reserved: 26.04.2026 Published: 09.05.2026 Updated: 09.05.2026

Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.6

Product Status

Vendor python-pillow
Product Pillow
Versions
  • Version >= 10.3.0, < 12.2.0 is affected

References

Problem Types

  • CWE-190: Integer Overflow or Wraparound CWE
  • CWE-787: Out-of-bounds Write CWE