Bug 1982378 (CVE-2021-34552)

Summary: CVE-2021-34552 python-pillow: Buffer overflow in image convert function
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, cstratak, manisandro, miminar, orion, paul, python-maint, tomckay, torsava
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-pillow 8.3.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in python-pillow. This flaw allows an attacker to pass controlled parameters directly into a convert function, triggering a buffer overflow in the "convert()" or "ImagingConvertTransparent()" functions in Convert.c. The highest threat to this vulnerability is to system availability. In Red Hat Quay, a vulnerable version of python-pillow is shipped with quay-registry-container, however the invoice generation feature which uses python-pillow is disabled by default. Therefore impact has been rated Moderate.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-19 14:09:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1982379, 1982380, 1982381, 1982382, 1987269    
Bug Blocks: 1982383    

Description Guilherme de Almeida Suckevicz 2021-07-14 18:15:56 UTC
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.

Reference:
https://pillow.readthedocs.io/en/stable/releasenotes/8.3.0.html#buffer-overflow

Comment 1 Guilherme de Almeida Suckevicz 2021-07-14 18:16:31 UTC
Created mingw-python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1982379]


Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1982380]


Created python2-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1982381]


Created python3-pillow tracking bugs for this issue:

Affects: epel-7 [bug 1982382]

Comment 8 errata-xmlrpc 2021-10-19 12:11:16 UTC
This issue has been addressed in the following products:

  Red Hat Quay 3

Via RHSA-2021:3917 https://access.redhat.com/errata/RHSA-2021:3917

Comment 9 Product Security DevOps Team 2021-10-19 14:09:23 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-34552

Comment 10 Yadnyawalk Tale 2021-11-09 05:56:10 UTC
(Updating satellite hotfix)

Comment 11 errata-xmlrpc 2021-11-09 17:24:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4149 https://access.redhat.com/errata/RHSA-2021:4149