
CVE catalog
CVE-2021-25291
pillow affected and fixed versions
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.40% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie-security | pillow | 11.1.0-5+deb13u3 | Fixed | [CVE-2021-25291] |
| Debiantrixie | pillow | 11.1.0-5+deb13u4 | Fixed | [CVE-2021-25291] |
| Debiantrixie | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debiansid | pillow | 13.0.0-1 | Fixed | [CVE-2021-25291] |
| Debiansid | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debianforky | pillow | 12.3.0-1 | Fixed | [CVE-2021-25291] |
| Debianforky | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debianbookworm-security | pillow | 9.4.0-1.1+deb12u1 | Fixed | [CVE-2021-25291] |
| Debianbookworm | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debianbookworm | pillow | 9.4.0-1.1+deb12u1 | Fixed | [CVE-2021-25291] |
Showing 10 fix observations. All 24 observations, including unknown and conflicting reports, are available below.
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Alpine3.14 | py3-pillow | 8.1.2-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2021-25291] |
| Alpine3.15 | py3-pillow | 8.1.2-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2021-25291] |
| Debianbookworm | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debianbookworm | pillow | 9.4.0-1.1+deb12u1 | Fixed | [CVE-2021-25291] |
| Debianbookworm-security | pillow | 9.4.0-1.1+deb12u1 | Fixed | [CVE-2021-25291] |
| Debianforky | pillow | 12.3.0-1 | Fixed | [CVE-2021-25291] |
| Debianforky | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debiansid | pillow | 13.0.0-1 | Fixed | [CVE-2021-25291] |
| Debiansid | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debiantrixie | pillow | 11.1.0-5+deb13u4 | Fixed | [CVE-2021-25291] |
| Debiantrixie | pillow | 8.1.1-1 | FixedDistribution-reported fixed boundary | [CVE-2021-25291] |
| Debiantrixie-security | pillow | 11.1.0-5+deb13u3 | Fixed | [CVE-2021-25291] |
| Ubuntu20.04 | pillow | 6.1.0-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 6.1.0-1build1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 6.2.1-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 7.0.0-4 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 7.0.0-4build1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 7.0.0-4ubuntu0.1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 7.0.0-4ubuntu0.2 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntu20.04 | pillow | 7.0.0-4ubuntu0.3 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntupro | pillow-python2 | 6.2.1-3 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntupro | pillow-python2 | 6.2.1-3ubuntu0.1~esm1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntupro | pillow-python2 | 6.2.1-3ubuntu0.1~esm2 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
| Ubuntupro | pillow-python2 | 6.2.1-3~build1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-25291] |
Original provider fields
{
"package_releases": [
{
"name": "pillow",
"status": "fixed",
"release": "sid",
"version": "13.0.0-1"
},
{
"name": "pillow",
"status": "fixed",
"release": "forky",
"version": "12.3.0-1"
},
{
"name": "pillow",
"status": "fixed",
"release": "trixie",
"version": "11.1.0-5+deb13u4"
},
{
"name": "pillow",
"status": "fixed",
"release": "trixie-security",
"version": "11.1.0-5+deb13u3"
},
{
"name": "pillow",
"status": "fixed",
"release": "bookworm",
"version": "9.4.0-1.1+deb12u1"
},
{
"name": "pillow",
"status": "fixed",
"release": "bookworm-security",
"version": "9.4.0-1.1+deb12u1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "pillow",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "8.1.1-1"
},
{
"bug": null,
"name": "pillow",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "8.1.1-1"
},
{
"bug": null,
"name": "pillow",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "8.1.1-1"
},
{
"bug": null,
"name": "pillow",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": "8.1.1-1"
}
],
"distribution_packages": [
{
"name": "py3-pillow",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.1.2-r0"
}
]
}
],
"release": "3.14",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-25291",
"fixed_version": "8.1.2-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2021-25291",
"provider_updated_at": "2026-10-23T17:17:56.162310856Z",
"applicability_unknown": true
},
{
"name": "py3-pillow",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.1.2-r0"
}
]
}
],
"release": "3.15",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-25291",
"fixed_version": "8.1.2-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2021-25291",
"provider_updated_at": "2026-10-23T17:17:56.162310856Z",
"applicability_unknown": true
},
{
"name": "pillow",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.0.0-4ubuntu0.3"
}
]
}
],
"release": "20.04",
"versions": [
"6.1.0-1",
"6.1.0-1build1",
"6.2.1-2",
"7.0.0-4",
"7.0.0-4build1",
"7.0.0-4ubuntu0.1",
"7.0.0-4ubuntu0.2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-25291",
"fixed_version": "7.0.0-4ubuntu0.3",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2021-25291",
"provider_updated_at": "2026-02-04T02:36:45.528094Z",
"applicability_unknown": true
},
{
"name": "pillow-python2",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "pro",
"versions": [
"6.2.1-3~build1",
"6.2.1-3",
"6.2.1-3ubuntu0.1~esm1",
"6.2.1-3ubuntu0.1~esm2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-25291",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2021-25291",
"provider_updated_at": "2026-02-04T02:36:45.528094Z",
"applicability_unknown": true
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [python3-pil]Unknown
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookwormFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
- [python3-pil.imagetk]Unknown
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookwormFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
- [python-pil-doc]Unknown
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· all · bookwormFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookwormFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookworm-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookworm-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
[Debian 13 (Trixie)]
- [python3-pil]Unknown
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· amd64 · trixieFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u4· arm64 · trixieFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u3· amd64 · trixie-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u3· arm64 · trixie-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
- [python3-pil.imagetk]Unknown
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· amd64 · trixieFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u4· arm64 · trixieFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u3· amd64 · trixie-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u3· arm64 · trixie-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
- [python-pil-doc]Unknown
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· all · trixieFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u4· all · trixieFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u3· all · trixie-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
11.1.0-5+deb13u3· all · trixie-securityFixed · Fixed:
8.1.1-1dsa · pillow · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11261-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-25291]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-25291]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-25291]
- [https://security-tracker.debian.org/tracker/CVE-2021-25291]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-25291.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]