CVE-2021-25289: python pillow Out-of-bounds Write
CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2021-25289GHSA-57h3-9rgr-c24mBIT-pillow-2021-25289PYSEC-2021-35UBUNTU-CVE-2021-25289DEBIAN-CVE-2021-25289
Published 19-03-2021Last modified 03-08-2024
Vulnerability summary
CVE-2021-25289 is a critical (CVSS 9.8) Out-of-bounds Write vulnerability in python pillow. EPSS estimates a 2.34% chance of exploitation in the next 30 days, higher than 83.3% of scored vulnerabilities.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
2.34%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 7 · Related 7Timeline
- 19-03-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.
CVSS metrics
7 scores · 5 sources · 3 versionsCritical 9.3Preferred score · OSV · Pypi (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NSourcesSingle source
Critical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 5 agree
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
High 7.5Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
2.34%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
0.00 pp
From 2.34% on 18-09-2026
18-09-202618-10-2026
EPSS score2.34%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu2 products
- pillow< 7.0.0-4ubuntu0.3
- pillow-python2All versions (No fix recorded)
Alpine1 product
- py3-pillow< 8.1.2-r0
Debian1 product
- pillow< 8.1.1-1
PyPI1 product
- pillow< 8.1.1
Python1 product
- pillow< 8.1.1
5 vendors · 6 products
References
13 links- pillow.readthedocs.io/en/stable/releasenotes/8.1.1.htmlX Refsource MISCWEBREPORTRelease NotesVendor Advisory