CVE-2021-25293 Out of bounds read in Pillow
An out-of-bounds read in Pillow allows attackers to cause denial of service or disclose sensitive memory information via crafted SGI images.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-25293?
CVE-2021-25293 is a high-severity memory corruption vulnerability in Python Pillow, published on 19 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.
Weakness: CWE-125
Which versions are affected by CVE-2021-25293?
4 open source packages ship an affected version, including pillow and Pillow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | All versions | 8.1.1 |
pillow PyPI | All versions | 8.1.1 |
pillow PyPI | From 4.3.0 | 8.1.1 |
Pillow PyPI | From 4.3.0 | 8.1.1 |
Products include Python Pillow.
How do I fix CVE-2021-25293?
Upgrade pillow to 8.1.1 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-25293 being exploited?
There is no known exploitation of CVE-2021-25293 in the wild and no public exploit code.
Other vulnerabilities in Python Pillow
Sources
Also known as ALPINE-CVE-2021-25293, BIT-pillow-2021-25293, DEBIAN-CVE-2021-25293, GHSA-p43w-g3c5-g5mq, PYSEC-2021-39, ROOT-APP-PYPI-CVE-2021-25293 and 1 more.