High
Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-42311
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 04:27 UTC · Revision 1
Source evidence
Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)
core-osv · Original sourcePublished 9 May 2026, 04:11 UTC
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.
osv:CVE-2026-42311
Complete source record
{
"id": "de95c4614d21ad9d45476cb5254c533ab25e4743013a776a05f9b5222be386a9",
"url": "https://osv.dev/vulnerability/CVE-2026-42311",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Pillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)",
"summary": "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.",
"evidence": "osv:CVE-2026-42311",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-42311",
"aliases": [
"BIT-pillow-2026-42311",
"CVE-2026-42311",
"GHSA-pwv6-vv43-88gr",
"PYSEC-2026-2252"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python-pillow/pillow",
"type": "GIT",
"events": [
{
"introduced": "5c89d88eee199ba53f64581ea39b6a1bc52feb1a"
},
{
"fixed": "3c41c095064200a02672d89cc5ff629eaf4b0d4f"
},
{
"fixed": "58f9a1d166dcb0c274807d4423522d205b0c35ea"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.3.0"
},
{
"fixed": "12.2.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "58f9a1d166dcb0c274807d4423522d205b0c35ea"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "3c41c095064200a02672d89cc5ff629eaf4b0d4f"
}
],
"source": "REFERENCES_TAG",
"original_tag": "12.2.0"
}
]
}
}
],
"versions": [
"12.1.0",
"12.0.0",
"11.3.0",
"11.2.1",
"11.1.0",
"11.0.0",
"10.4.0",
"10.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42311.json"
}
}
],
"modified": "2026-10-28T02:30:42.670951872Z",
"provider": "osv",
"references": [
"https://github.com/python-pillow/Pillow/releases/tag/12.2.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42311.json",
"https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr",
"https://nvd.nist.gov/vuln/detail/CVE-2026-42311",
"https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea",
"https://github.com/python-pillow/Pillow/pull/9520"
],
"provider_metadata": {
"cwe_ids": [
"CWE-190",
"CWE-787"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42311.json"
}
},
"related_cves": [
{
"value": "CVE-2026-42311",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 510303,
"published_at": "2026-05-09T04:11:58.092+00:00"
}