high7.5
CVE-2021-25291
Out of bounds read in Pillow
Impact
An issue was discovered in Pillow before 8.2.0. In `TiffDecode.c`, there is an out-of-bounds read in `TiffreadRGBATile` via invalid tile boundaries.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | Pillow | < 8.2.0 | 8.2.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Python | Pillow | before 8.1.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html
- https://security.gentoo.org/glsa/202107-33
- https://github.com/advisories/GHSA-mvg9-xffr-p774
- https://nvd.nist.gov/vuln/detail/CVE-2021-25291
- https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a
- https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-37.yaml