CVE-2020-35655 Pillow Out-of-bounds Read
Attackers can cause a buffer over-read and potential crash or information leak by providing crafted SGI RLE image files to the Pillow library.
- 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-35655?
CVE-2020-35655 is a medium-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, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.
Weakness: CWE-125
Which versions are affected by CVE-2020-35655?
4 open source packages ship an affected version, including pillow. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | From 4.3.0 | 8.1.0 |
pillow PyPI | From 4.3.0 | 8.1.0 |
pillow PyPI | From 4.3.0 | 8.1.0 |
pillow PyPI | From 4.3.0 | 8.1.0 |
Products include Fedoraproject Fedora, Python Pillow.
How do I fix CVE-2020-35655?
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-35655 being exploited?
There is no known exploitation of CVE-2020-35655 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2020-35655, BIT-pillow-2020-35655, DEBIAN-CVE-2020-35655, GHSA-hf64-x4gq-p99h, PYSEC-2021-71, UBUNTU-CVE-2020-35655.