CVE-2020-5310 Integer overflow in Pillow
An integer overflow in Pillow's TIFF decoder allows attackers to cause denial of service or potentially execute code via malicious images.
- 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-5310?
CVE-2020-5310 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 3 Jan 2020. 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
libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
Weakness: CWE-190
Which versions are affected by CVE-2020-5310?
4 open source packages ship an affected version, including pillow. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
pillow Bitnami | All versions | 6.2.2 |
pillow PyPI | All versions | 6.2.2 |
pillow PyPI | All versions | 6.2.2 |
pillow PyPI | All versions | 6.2.2 |
Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Python Pillow.
How do I fix CVE-2020-5310?
Upgrade pillow to 6.2.2 or later.
Is CVE-2020-5310 being exploited?
There is no known exploitation of CVE-2020-5310 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2020-5310, BIT-pillow-2020-5310, DEBIAN-CVE-2020-5310, GHSA-vcqg-3p29-xw73, PYSEC-2020-81.