Vulnerabilities · 2021 · Python
CVE-2021-25293
Python Pillow vulnerability
An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.
Affected products
Pillow. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html · Vendor Advisory
- security.gentoo.org/glsa/202107-33 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-25293
- github.com/python-pillow/Pillow/commit/4853e522bddbec66022c0915b9a56255d0188bf9
- github.com/python-pillow/Pillow/commit/f891baa604636cd2506a9360d170bc2cf4963cc5
- github.com/advisories/GHSA-p43w-g3c5-g5mq
- github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-39.yaml
- nvd.nist.gov/vuln/detail/CVE-2021-25293
- cve.org/CVERecord?id=CVE-2021-25293
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.