Debian Security Advisory

DLA-2716-1 pillow -- LTS security update

Date Reported:
22 Jul 2021
Affected Packages:
pillow
Vulnerable:
Yes
Security database references:
In Mitre's CVE dictionary: CVE-2020-35653, CVE-2021-25290, CVE-2021-28676, CVE-2021-28677, CVE-2021-34552.
More information:

Several vulnerabilities have been discovered in pillow (Python Imaging Library - PIL).

Affected binary packages:

python-imaging python-pil-dbg python-pil-doc python-pil.imagetk-dbg python-pil.imagetk python-pil python3-pil-dbg python3-pil.imagetk-dbg python3-pil.imagetk python3-pil

  • CVE-2020-35653

    Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.

  • CVE-2021-25290

    An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.

  • CVE-2021-28676

    An issue was discovered in Pillow before 8.2.0. For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on load.

  • CVE-2021-28677

    An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening.

  • CVE-2021-34552

    Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.

For Debian 9 stretch, these problems have been fixed in version 4.0.0-4+deb9u3.

We recommend that you upgrade your pillow packages.

For the detailed security status of pillow please refer to its security tracker page at: https://security-tracker.debian.org/tracker/pillow

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS