CVE-2020-35653 Pillow Out-of-bounds Read

High 7.1 Published Updated

A buffer over-read in Pillow allows attackers to cause denial of service or read sensitive memory via crafted PCX files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-35653?

CVE-2020-35653 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 12 Jan 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Pillow before 8.1.0, PcxDecode has a buffer over-read when decoding a crafted PCX file because the user-supplied stride value is trusted for buffer calculations.

Weakness: CWE-125

Which versions are affected by CVE-2020-35653?

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

PackageAffectedFixed in
pillow BitnamiAll versions8.1.0
pillow PyPIAll versions8.1.0
pillow PyPIAll versions8.1.0
pillow PyPIAll versions8.1.0

Products include Debian Debian Linux, Fedoraproject Fedora, Python Pillow.

How do I fix CVE-2020-35653?

Upgrade pillow to 8.1.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-2020-35653 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2020-35653, BIT-pillow-2020-35653, DEBIAN-CVE-2020-35653, GHSA-f5g8-5qq7-938w, OESA-2021-1070, PYSEC-2021-69 and 2 more.

Is CVE-2020-35653 in your software?

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

Check your SBOMs for free