CVE-2022-45199 Pillow subject to DoS via SAMPLESPERPIXEL tag

High 7.5 Published Updated

An attacker can cause a denial of service in applications using the Pillow library by providing a malicious image with a specific SAMPLESPERPIXEL value.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-45199?

CVE-2022-45199 is a high-severity denial of service vulnerability in Python Pillow, published on 14 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.

Weakness: CWE-400

Which versions are affected by CVE-2022-45199?

4 open source packages ship an affected version, including pillow. It affects 1 product.

PackageAffectedFixed in
pillow BitnamiAll versions9.3.0
pillow PyPIFrom 9.2.09.3.0
pillow PyPIFrom 9.2.09.3.0
pillow PyPIFrom 9.2.09.3.0

Products include Python Pillow.

How do I fix CVE-2022-45199?

Upgrade pillow to 9.3.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-2022-45199 being exploited?

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

All Python Pillow vulnerabilities

Sources

Also known as BIT-pillow-2022-45199, DEBIAN-CVE-2022-45199, GHSA-q4mp-jvh2-76fj, OESA-2022-2113, OESA-2023-1024, PYSEC-2022-42980.

Is CVE-2022-45199 in your software?

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

Check your SBOMs for free