CVE-2021-25289
CRITICAL9.8EPSS 0.76%Out of bounds write in Pillow
Published: 3/29/2021Modified: 4/28/2026
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.
Affected packages (5)
- Alpine/py3-pillowfrom 0, < 8.1.2-r0
- Bitnami/pillowfrom 0, < 8.1.1
- Debian/pillowfrom 0, < 8.1.1-1
- PyPI/pillowfrom 0, < 8.1.1
- PyPI/pillowfrom 0, < 8.1.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-57h3-9rgr-c24m
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-25289
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2021-25289
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-25289
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-35.yaml
- WEBhttps://github.com/python-pillow/Pillow
- WEBhttps://github.com/python-pillow/Pillow/commit/3fee28eb9479bf7d59e0fa08068f9cc4a6e2f04c
- WEBhttps://github.com/python-pillow/Pillow/commit/cbfdde7b1f2295059a20a539ee9960f0bec7b299
- WEBhttps://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
- WEBhttps://security.gentoo.org/glsa/202107-33