CVE-2019-16865 DOS attack in Pillow when processing specially crafted image files
Attackers can cause denial of service in applications using Pillow by providing specially crafted invalid image files that trigger excessive memory allocation or processing time.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-16865?
CVE-2019-16865 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 4 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.
Weakness: CWE-770
Which versions are affected by CVE-2019-16865?
3 open source packages ship an affected version, including pillow. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pillow PyPI | All versions | 6.2.0 |
pillow PyPI | All versions | 6.2.0 |
pillow PyPI | All versions | 6.2.0 |
Products include Fedoraproject Fedora, Python Pillow.
How do I fix CVE-2019-16865?
Upgrade pillow to 6.2.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2019-16865 being exploited?
There is no known exploitation of CVE-2019-16865 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2019-16865, GHSA-j7mj-748x-7p78, PYSEC-2019-110, UBUNTU-CVE-2019-16865.