#VU24205 Buffer overflow in Pillow


Published: 2020-01-13

Vulnerability identifier: #VU24205

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2019-19911

CWE-ID: CWE-119

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Pillow
Universal components / Libraries / Libraries used by multiple products

Vendor: Alex Clark and Contributors

Description

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

The vulnerability exists when processing FPX images due to the "FpxImagePlugin.py" calls the range function on an unvalidated 32-bit integer if the number of bands is large. A remote attacker can trigger memory corruption and cause a denial of service condition on the target system.

On Windows running 32-bit Python, this results in an OverflowError or MemoryError due to the 2 GB limit. However, on Linux running 64-bit Python this results in the process being terminated by the OOM killer.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Pillow: 1.0 - 6.2.1


External links
http://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability