Skip to content

Uncontrolled Resource Consumption in Pillow

High severity GitHub Reviewed Published Apr 1, 2020 to the GitHub Advisory Database • Updated Feb 2, 2023

Package

pip Pillow (pip)

Affected versions

< 6.2.2

Patched versions

6.2.2

Description

There is a DoS vulnerability in Pillow before 6.2.2 caused by FpxImagePlugin.py calling the range function on an unvalidated 32-bit integer if the number of bands is large. 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.

References

Published by the National Vulnerability Database Jan 5, 2020
Reviewed Apr 1, 2020
Published to the GitHub Advisory Database Apr 1, 2020
Last updated Feb 2, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2019-19911

GHSA ID

GHSA-5gm3-px64-rw72

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.