Bug 2247820 (CVE-2023-44271) - CVE-2023-44271 python-pillow: uncontrolled resource consumption when textlength in an ImageDraw instance operates on a long text argument
Summary: CVE-2023-44271 python-pillow: uncontrolled resource consumption when textleng...
Keywords:
Status: NEW
Alias: CVE-2023-44271
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2247821
Blocks: 2247822
TreeView+ depends on / blocked
 
Reported: 2023-11-03 16:39 UTC by Guilherme de Almeida Suckevicz
Modified: 2024-02-29 19:41 UTC (History)
23 users (show)

Fixed In Version: Pillow 10.0.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Pillow. A denial of service issue uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for TrueType in ImageFont when text length in an ImageDraw instance operates on a long text argument.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:0345 0 None None None 2024-01-23 16:20:09 UTC
Red Hat Product Errata RHSA-2024:1057 0 None None None 2024-02-29 19:41:42 UTC

Description Guilherme de Almeida Suckevicz 2023-11-03 16:39:47 UTC
An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument.

References:
https://devhub.checkmarx.com/cve-details/CVE-2023-44271/
https://github.com/python-pillow/Pillow/pull/7244
https://github.com/python-pillow/Pillow/commit/1fe1bb49c452b0318cad12ea9d97c3bef188e9a7

Comment 1 Guilherme de Almeida Suckevicz 2023-11-03 16:44:01 UTC
Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 2247821]

Comment 3 errata-xmlrpc 2024-01-23 16:20:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2024:0345 https://access.redhat.com/errata/RHSA-2024:0345

Comment 4 errata-xmlrpc 2024-02-29 19:41:41 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2024:1057 https://access.redhat.com/errata/RHSA-2024:1057


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