CVE-2026-112396
Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.694% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.9 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:57:54.419Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:54.419Z | CVE Program |
| epss | verified | 2026-11-19T16:04:44.258Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:18.502Z | OSV |
| affected | verified | 2026-11-19T12:57:54.419Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:54.419Z | CVE Program |
Affected versions and configuration
python-pillow Pillow; default status: unknown: >= 11.3.0, < 13.0.0 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "python-pillow",
"product": "Pillow",
"versions": [
{
"status": "affected",
"version": ">= 11.3.0, < 13.0.0"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-112396",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-20T15:10:26.056158Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-20T16:09:21.913Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-4rr5-89j8-mwwm",
"aliases": [
"BIT-pillow-2026-112396",
"CVE-2026-112396",
"PYSEC-2026-4328"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "11.3.0"
},
{
"fixed": "13.0.0"
}
]
}
],
"package": {
"name": "pillow",
"purl": "pkg:pypi/pillow",
"ecosystem": "PyPI"
},
"versions": [
"11.3.0",
"12.0.0",
"12.1.0",
"12.1.1",
"12.2.0",
"12.3.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-4rr5-89j8-mwwm/GHSA-4rr5-89j8-mwwm.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-112396",
"type": "ADVISORY"
},
{
"url": "https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb",
"type": "WEB"
},
{
"url": "https://github.com/python-pillow/Pillow",
"type": "PACKAGE"
},
{
"url": "https://github.com/python-pillow/Pillow/releases/tag/13.0.0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-416"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-10-19T22:17:06Z",
"github_reviewed_at": "2026-10-21T21:24:19Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2026-4328",
"aliases": [
"BIT-pillow-2026-112396",
"CVE-2026-112396",
"GHSA-4rr5-89j8-mwwm"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "11.3.0"
},
{
"fixed": "13.0.0"
}
]
}
],
"package": {
"name": "pillow",
"purl": "pkg:pypi/pillow",
"ecosystem": "PyPI"
},
"versions": [
"11.3.0",
"12.0.0",
"12.1.0",
"12.1.1",
"12.2.0",
"12.3.0"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/pillow/PYSEC-2026-4328.yaml"
},
"ecosystem_specific": {}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/python-pillow/Pillow/releases/tag/13.0.0",
"type": "ADVISORY"
},
{
"url": "https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb",
"type": "FIX"
},
{
"url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm",
"type": "EVIDENCE"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | pillow | Not a distribution channel | 13.0.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:18.502ZArchived source JSON
Source publication: 2026-10-21T21:24:19.000Z
Source modification: 2026-10-27T11:10:49.694ZDocument fingerprint
7841b6cd095d8124afcf08eb6d62fae499d65ba3c479f0ba0d61d936705802fd - OSVConsulted: 2026-11-19T12:52:18.502ZArchived source JSON
Source publication: 2026-10-19T22:17:06.837Z
Source modification: 2026-10-27T11:10:49.694ZDocument fingerprint
7841b6cd095d8124afcf08eb6d62fae499d65ba3c479f0ba0d61d936705802fd - CVE ProgramConsulted: 2026-11-19T12:57:54.419ZArchived source JSON
Source publication: 2026-10-19T21:02:15.197Z
Source modification: 2026-10-20T16:09:21.913ZDocument fingerprint
ef3db51b6645120e86610595c9ac28e02e62c454e4cdd34fb55b35da56a542e4 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:44.258ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
d5e727fd451dbf6b50ade5c4c96ba4be29cc40c72ac399bab5d430ee68f2166c
Official status history
- UNKNOWN → PUBLISHED · · evidence