Resource exhaustion in Pillow - CVE-2019-16865

 

Resource exhaustion in Pillow - CVE-2019-16865

Published: February 7, 2020 / Updated: March 11, 2020


Vulnerability identifier: #VU25021
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-16865
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to incorrect resource management issue when processing invalid images in Pillow. A remote attacker can trigger resource exhaustion with a specially crafted image file and perform a denial of service (DoS) attack.


Affected software

Pillow
pillow (Ubuntu package)
pillow (Debian package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
python-pillow
Red Hat OpenShift Container Platform
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
CentOS
Red Hat Enterprise Linux for x86_64
Fedora

How to mitigate CVE-2019-16865

Install updates from vendor's website.

Pillow - update to 6.2.0
pillow (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.3, 5.1.0-1ubuntu0.2, 6.1.0-1ubuntu0.2
pillow (Debian package) - addressed in versions 4.0.0-4+deb9u1, 5.4.1-2+deb10u1
Red Hat OpenShift Container Platform - update to 4.3.5
python-pillow - addressed in versions 5.4.1-3.fc30, 6.1.0-4.fc31

External References

Related Security Bulletins