QID 375694

Date Published: 2021-08-04

QID 375694: Python Pillow Library Buffer Overflow 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.

PIL since 1.1.4 and Pillow since 1.0 allowed parameters passed into a convert function to trigger buffer overflow in Convert.c.

Affected Versions:
PIL since 1.1.4 and Pillow since 1.0 upto 8.2.0

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

Successful exploitation of vulnerability can allow an attacker to trigger Buffer Overflow. Modification of some system files or information is possible, but the attacker does not have control over what can be modified, or the scope of what the attacker can affect is limited

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    The vendor has released patch. For more information, please visit: Pillow 8.3.0 Release Note.

    CVEs related to QID 375694

    Software Advisories
    Advisory ID Software Component Link
    Pillow 8.3.0 Release Note URL Logo pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html