Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2019-19911

CVE-2019-19911: Uncontrolled Resource Consumption in Pillow

April 1, 2020 (updated October 8, 2024)

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

  • github.com/advisories/GHSA-5gm3-px64-rw72
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-172.yaml
  • github.com/python-pillow/Pillow/blob/master/CHANGES.rst
  • github.com/python-pillow/Pillow/commit/774e53bb132461d8d5ebefec1162e29ec0ebc63d
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P
  • nvd.nist.gov/vuln/detail/CVE-2019-19911
  • pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html
  • usn.ubuntu.com/4272-1
  • www.debian.org/security/2020/dsa-4631

Code Behaviors & Features

Detect and mitigate CVE-2019-19911 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.2.2

Fixed versions

  • 6.2.2

Solution

Upgrade to version 6.2.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

pypi/Pillow/CVE-2019-19911.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.