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

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-05-04T20:20:31.000Z
- Modified: 2026-09-10T03:50:47.242Z
- Also known as: GHSA-pwv6-vv43-88gr, BIT-PILLOW-2026-42311, PYSEC-2026-2252
- Weaknesses: CWE-190, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 10.3.0, < 12.2.0
- pillow (PyPI): from 10.3.0 before 12.2.0
- python pillow: from 10.3.0 before 12.2.0
- pillow (Bitnami): from 10.3.0 before 12.2.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr> (advisory, fix, patch, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9520> (fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.2.0> (advisory, article, product, release-notes, web)
- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42311> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-42311](https://www.cve.org/CVERecord?id=CVE-2026-42311), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-pwv6-vv43-88gr](https://github.com/advisories/GHSA-pwv6-vv43-88gr), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42311](https://nvd.nist.gov/vuln/detail/CVE-2026-42311), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2252](https://osv.dev/vulnerability/PYSEC-2026-2252), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-42311](https://osv.dev/vulnerability/BIT-PILLOW-2026-42311), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-42311 · Whole record: https://cve.day/CVE-2026-42311.json · Rebuilt by cve.day 2026-11-25T22:59:21.141Z
