CVE-2021-28675 Pillow denial of service

Medium 5.5 Published Updated

Attackers can cause a denial of service by providing a malicious PSD file to the Pillow library, affecting applications that process images.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-28675?

CVE-2021-28675 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 2 Jun 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

An issue was discovered in Pillow before 8.2.0. PSDImagePlugin.PsdImageFile lacked a sanity check on the number of input layers relative to the size of the data block. This could lead to a DoS on Image.open prior to Image.load.

Weakness: CWE-252

Which versions are affected by CVE-2021-28675?

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 PyPIAll versions8.2.0
pillow PyPIAll versions8.2.0

Products include Fedoraproject Fedora, Python Pillow.

How do I fix CVE-2021-28675?

Upgrade pillow to 8.2.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-28675 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2021-28675, BIT-pillow-2021-28675, DEBIAN-CVE-2021-28675, GHSA-g6rj-rv7j-xwp4, PYSEC-2021-139, ROOT-APP-PYPI-CVE-2021-28675 and 1 more.

Is CVE-2021-28675 in your software?

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

Check your SBOMs for free