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 (updated May 13, 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/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea
  • github.com/python-pillow/Pillow/pull/9520
  • github.com/python-pillow/Pillow/releases/tag/12.2.0
  • 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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 Sun, 08 Nov 2026 00:16:04 +0000.