PT-2021-4557 · Python+9 · Pillow+10
Published
2021-07-13
·
Updated
2024-06-15
·
CVE-2021-34552
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Pillow versions 8.2.0 and earlier
PIL (aka Python Imaging Library) versions 1.1.7 and earlier
Description
The issue is related to a buffer overflow in Convert.c, which can be triggered by passing controlled parameters directly into a convert function. This can allow a remote attacker to access confidential data, compromise data integrity, and cause a denial of service. The vulnerability is associated with the convert() or ImagingConvertTransparent() function implementation in the Pillow and PIL libraries, where buffer copying occurs without checking the size of the input data.
Recommendations
For Pillow versions 8.2.0 and earlier, consider disabling the convert function until a patch is available.
For PIL (aka Python Imaging Library) versions 1.1.7 and earlier, restrict access to the convert() or ImagingConvertTransparent() function to minimize the risk of exploitation.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Pil
Pillow
Red Hat
Rocky Linux
Suse
Ubuntu