CVE-2021-25287 Out-of-bounds Read in Pillow
An out-of-bounds read in Pillow's J2kDecode allows attackers to cause denial of service or disclose sensitive memory contents.
- 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-25287?
CVE-2021-25287 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 2 Jun 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.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
Weakness: CWE-125
Which versions are affected by CVE-2021-25287?
4 open source packages ship an affected version, including pillow. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | All versions | 8.2.0 |
pillow PyPI | All versions | 8.2.0 |
pillow PyPI | From 2.4.0 | 8.2.0 |
pillow PyPI | From 2.4.0 | 8.2.0 |
Products include Fedoraproject Fedora, Python Pillow.
How do I fix CVE-2021-25287?
Upgrade pillow to 8.2.0 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-25287 being exploited?
There is no known exploitation of CVE-2021-25287 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2021-25287, BIT-pillow-2021-25287, DEBIAN-CVE-2021-25287, GHSA-77gc-v2xv-rvvh, PYSEC-2021-137, ROOT-APP-PYPI-CVE-2021-25287 and 1 more.