CVE-2020-35654 Pillow Out-of-bounds Write

High 8.8 Published Updated

Heap-based buffer overflow in Pillow's TiffDecode allows attackers to execute arbitrary code or cause denial of service via crafted YCbCr 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-35654?

CVE-2020-35654 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, 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, TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode.

Weakness: CWE-787

Which versions are affected by CVE-2020-35654?

4 open source packages ship an affected version, including pillow. It affects 2 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 Fedoraproject Fedora, Python Pillow.

How do I fix CVE-2020-35654?

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2020-35654, BIT-pillow-2020-35654, DEBIAN-CVE-2020-35654, GHSA-vqcj-wrf2-7v73, PYSEC-2021-70, ROOT-APP-PYPI-CVE-2020-35654 and 1 more.

Is CVE-2020-35654 in your software?

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

Check your SBOMs for free