CVE-2021-25288 Pillow Out-of-bounds Read vulnerability

Critical 9.1 Published Updated

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-25288?

CVE-2021-25288 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_gray_i.

Weakness: CWE-125

Which versions are affected by CVE-2021-25288?

4 open source packages ship an affected version, including pillow. It affects 2 products.

PackageAffectedFixed in
pillow BitnamiAll versions8.2.0
pillow PyPIAll versions8.2.0
pillow PyPIFrom 2.4.08.2.0
pillow PyPIFrom 2.4.08.2.0

Products include Fedoraproject Fedora, Python Pillow.

How do I fix CVE-2021-25288?

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-25288 being exploited?

There is no known exploitation of CVE-2021-25288 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2021-25288, BIT-pillow-2021-25288, DEBIAN-CVE-2021-25288, GHSA-rwv7-3v45-hg29, PYSEC-2021-138, ROOT-APP-PYPI-CVE-2021-25288 and 1 more.

Is CVE-2021-25288 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free