CVE-2021-28676 Potential infinite loop in Pillow

High 7.5 Published Updated

An attacker can cause an infinite loop and denial of service by providing a malicious FLI image file to the Pillow library.

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

CVE-2021-28676 is a high-severity denial of service 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. For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on load.

Weakness: CWE-835

Which versions are affected by CVE-2021-28676?

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

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2021-28676, BIT-pillow-2021-28676, DEBIAN-CVE-2021-28676, GHSA-7r7m-5h27-29hp, PYSEC-2021-92, ROOT-APP-PYPI-CVE-2021-28676 and 1 more.

Is CVE-2021-28676 in your software?

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

Check your SBOMs for free