pillow — security advisory
Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.
- Products
- pillow
- Affected versions
- 10.0.0-1, 10.1.0-1, 10.2.0-1, 10.3.0-1, 10.3.0-2, 10.4.0-1, 10.4.0-1.1, 11.1.0-1, 11.1.0-2, 11.1.0-3, 11.1.0-4, 11.1.0-5, 11.1.0-5+deb13u1, 11.1.0-5+deb13u2, 11.1.0-5+deb13u3, 11.1.0-5+deb13u4, 11.2.1-1, 11.3.0-1, 12.0.0-1, 12.1.0-1, 12.1.1-1, 12.1.1-2, 12.2.0-1, 12.3.0-1, 13.0.0-1, 9.4.0-1.1, 9.4.0-1.1+deb12u1, 9.5.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-112393
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 17:55 UTC · Revision 1
Source evidence
Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.
osv:DEBIAN-CVE-2026-112393
pillow
Fixed versions: Not specified
pillow
Fixed versions: Not specified
pillow
Fixed versions: Not specified
Complete source record
{
"id": "51b5d95172506525ffcbe9375af206528eace8f69db420f6c62722c2a3223ea7",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-112393",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-112393",
"summary": "Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.",
"evidence": "osv:DEBIAN-CVE-2026-112393",
"products": [
{
"name": {
"value": "pillow",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.0.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.1.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.2.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.3.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.3.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "10.4.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "10.4.0-1.1",
"evidence": "/affected/0/versions"
},
{
"value": "11.1.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "11.1.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "11.1.0-3",
"evidence": "/affected/0/versions"
},
{
"value": "11.1.0-4",
"evidence": "/affected/0/versions"
},
{
"value": "11.1.0-5",
"evidence": "/affected/0/versions"
},
{
"value": "11.2.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "11.3.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "12.0.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "12.1.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "12.1.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "12.1.1-2",
"evidence": "/affected/0/versions"
},
{
"value": "12.2.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "12.3.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "13.0.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "9.4.0-1.1",
"evidence": "/affected/0/versions"
},
{
"value": "9.4.0-1.1+deb12u1",
"evidence": "/affected/0/versions"
},
{
"value": "9.5.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "pillow",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "11.1.0-5",
"evidence": "/affected/1/versions"
},
{
"value": "11.1.0-5+deb13u1",
"evidence": "/affected/1/versions"
},
{
"value": "11.1.0-5+deb13u2",
"evidence": "/affected/1/versions"
},
{
"value": "11.1.0-5+deb13u3",
"evidence": "/affected/1/versions"
},
{
"value": "11.1.0-5+deb13u4",
"evidence": "/affected/1/versions"
},
{
"value": "11.2.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "11.3.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "12.0.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "12.1.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "12.1.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "12.1.1-2",
"evidence": "/affected/1/versions"
},
{
"value": "12.2.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "12.3.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "13.0.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "pillow",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "11.1.0-5",
"evidence": "/affected/2/versions"
},
{
"value": "11.2.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "11.3.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "12.0.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "12.1.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "12.1.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "12.1.1-2",
"evidence": "/affected/2/versions"
},
{
"value": "12.2.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "12.3.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "13.0.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2026-112393",
"aliases": [
"DEBIAN-CVE-2026-112393"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pillow",
"purl": "pkg:deb/debian/pillow?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"10.0.0-1",
"10.1.0-1",
"10.2.0-1",
"10.3.0-1",
"10.3.0-2",
"10.4.0-1",
"10.4.0-1.1",
"11.1.0-1",
"11.1.0-2",
"11.1.0-3",
"11.1.0-4",
"11.1.0-5",
"11.2.1-1",
"11.3.0-1",
"12.0.0-1",
"12.1.0-1",
"12.1.1-1",
"12.1.1-2",
"12.2.0-1",
"12.3.0-1",
"13.0.0-1",
"9.4.0-1.1",
"9.4.0-1.1+deb12u1",
"9.5.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-112393.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pillow",
"purl": "pkg:deb/debian/pillow?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"11.1.0-5",
"11.1.0-5+deb13u1",
"11.1.0-5+deb13u2",
"11.1.0-5+deb13u3",
"11.1.0-5+deb13u4",
"11.2.1-1",
"11.3.0-1",
"12.0.0-1",
"12.1.0-1",
"12.1.1-1",
"12.1.1-2",
"12.2.0-1",
"12.3.0-1",
"13.0.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-112393.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pillow",
"purl": "pkg:deb/debian/pillow?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"11.1.0-5",
"11.2.1-1",
"11.3.0-1",
"12.0.0-1",
"12.1.0-1",
"12.1.1-1",
"12.1.1-2",
"12.2.0-1",
"12.3.0-1",
"13.0.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-112393.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-27T10:00:09.710326805Z",
"provider": "osv",
"upstream": [
"CVE-2026-112393"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-112393"
]
},
"related_cves": [
{
"value": "CVE-2026-112393",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 461478,
"published_at": "2026-10-19T21:17:07.613+00:00"
}