CVE-2020-5313 Out-of-bounds Read in Pillow
A buffer overflow in Pillow's FLI decoder allows attackers to execute arbitrary code or cause denial of service 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-5313?
CVE-2020-5313 is a high-severity memory corruption 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/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.
Weakness: CWE-125
Which versions are affected by CVE-2020-5313?
4 open source packages ship an affected version, including pillow and Pillow. It affects 4 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 |
Linux distribution packages (28)
python-pillow Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-devel Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-doc Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-qt Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-sane Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-tk Red Hat:enterprise_linux:7::client | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-doc Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-qt Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-sane Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-tk Red Hat:enterprise_linux:7::computenode | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-devel Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-doc Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-qt Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-sane Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-tk Red Hat:enterprise_linux:7::server | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-doc Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-qt Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-sane Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
python-pillow-tk Red Hat:enterprise_linux:7::workstation | All versions | 0:2.0.0-21.gitd1c6db8.el7 |
Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Python Pillow.
How do I fix CVE-2020-5313?
Upgrade pillow to 6.2.2 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-5313 being exploited?
There is no known exploitation of CVE-2020-5313 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as ALPINE-CVE-2020-5313, BIT-pillow-2020-5313, DEBIAN-CVE-2020-5313, GHSA-hj69-c76v-86wr, PYSEC-2020-84, RHSA-2020:3887 and 1 more.