CVE-2021-25291
HIGH7.5EPSS 0.54%Out of bounds read in Pillow
Published: 3/29/2021Modified: 4/28/2026
Description
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.
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.2.0
- 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:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-mvg9-xffr-p774
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-25291
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2021-25291
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-25291
- PATCHhttps://github.com/python-pillow/Pillow
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-37.yaml
- WEBhttps://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61
- WEBhttps://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a
- WEBhttps://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
- WEBhttps://security.gentoo.org/glsa/202107-33