Bug 2247820 (CVE-2023-44271)

Summary: CVE-2023-44271 python-pillow: uncontrolled resource consumption when textlength in an ImageDraw instance operates on a long text argument
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adudiak, bdettelb, davidn, epacific, hkataria, jcammara, jhardy, jmitchel, jneedle, jobarker, jtanner, kaycoth, kshier, mabashia, osapryki, rbobbitt, simaishi, smcdonal, stcannon, teagle, tfister, yguenane, zsadeh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2247821    
Bug Blocks: 2247822    

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

Comment 5 errata-xmlrpc 2024-05-22 09:34:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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