QID 375872

Date Published: 2021-09-22

QID 375872: Python Pillow Library Denial of Service (DoS) Vulnerability

Python Imaging Library is a free and open-source additional library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats. Pillow is the friendly PIL fork by Alex Clark and Contributors. The Python Imaging Library adds image processing capabilities to your Python interpreter.

The package pillow from 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.

Affected Versions:
Pillow versions since 5.2.0 and prior to 8.3.2

QID Detection Logic:(Authenticated)
This QID checks for vulnerable Pillow version with pip list command.

Successful exploitation of vulnerability may allow Denial of Service

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    The vendor has released patch. For more information, please visit: Pillow 8.3.2 Release Note.
    Vendor References

    CVEs related to QID 375872

    Software Advisories
    Advisory ID Software Component Link
    NA URL Logo pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html