Bug 1958240 (CVE-2021-28675) - CVE-2021-28675 python-pillow: Excessive memory allocation in PSD image reader
Summary: CVE-2021-28675 python-pillow: Excessive memory allocation in PSD image reader
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-28675
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1958241 1958242 1958243 1958244 1959683 1962535 1962536
Blocks: 1958269
TreeView+ depends on / blocked
 
Reported: 2021-05-07 13:55 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-11-09 18:51 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in python-pillow. PsdImagePlugin.PsdImageFile does not sanity check the number of input layers with regard to the size of the data block which could lead to a denial-of-service.
Clone Of:
Environment:
Last Closed: 2021-11-09 18:51:07 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4149 0 None None None 2021-11-09 17:24:42 UTC

Description Guilherme de Almeida Suckevicz 2021-05-07 13:55:52 UTC
PsdImagePlugin.PsdImageFile did not sanity check the number of input layers with regard to the size of the data block, this could lead to a denial-of-service on open() prior to load(). This dates to the PIL fork.

References:
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#security
https://github.com/python-pillow/Pillow/pull/5377

Comment 1 Guilherme de Almeida Suckevicz 2021-05-07 13:56:31 UTC
Created mingw-python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1958244]


Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1958241]


Created python2-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1958242]


Created python3-pillow tracking bugs for this issue:

Affects: epel-7 [bug 1958243]

Comment 4 Sam Fowler 2021-05-11 00:27:36 UTC
Statement:

To mitigate this feature on Red Hat Quay keep the invoice generation feature disabled, as it is by default.

Comment 9 errata-xmlrpc 2021-11-09 17:24:40 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

Comment 10 Product Security DevOps Team 2021-11-09 18:51:05 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-28675


Note You need to log in before you can comment on or make changes to this bug.