Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2026-42311

CVE-2026-42311: Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)

May 4, 2026

Processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution.

References

  • github.com/advisories/GHSA-pwv6-vv43-88gr
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/pull/9520
  • github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc
  • github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr
  • nvd.nist.gov/vuln/detail/CVE-2026-42311

Code Behaviors & Features

Detect and mitigate CVE-2026-42311 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 10.3.0 before 12.2.0

Fixed versions

  • 12.2.0

Solution

Upgrade to version 12.2.0 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

pypi/Pillow/CVE-2026-42311.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:35 +0000.