python-pillow: uncontrolled resource consumption when textlength in an ImageDraw instance operates on a long text argument
Published Nov 3, 2023
8.7
HIGHCVSS 4.0
EPSS 1.13%
Description
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.
Affected products
No data.
Configuration 2
- 38
No data.
Red Hat Ansible Automation Platform 2.4 for RHEL 8
python3x-pillow-0:10.0.1-1.el8ap
Fixed · RHSA-2024:1057
Red Hat Ansible Automation Platform 2.4 for RHEL 9
python-pillow-0:10.0.1-1.el9ap
Fixed · RHSA-2024:1057
Red Hat Enterprise Linux 7
python-pillow-0:2.0.0-24.gitd1c6db8.el7_9
Fixed · RHSA-2024:0345
Red Hat Enterprise Linux 8
python-pillow-0:5.1.1-20.el8
Fixed · RHSA-2024:3005
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | python3x-pillow-0:10.0.1-1.el8ap | Fixed | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | python-pillow-0:10.0.1-1.el9ap | Fixed | RHSA-2024:1057 |
| Red Hat Enterprise Linux 7 | python-pillow-0:2.0.0-24.gitd1c6db8.el7_9 | Fixed | RHSA-2024:0345 |
| Red Hat Enterprise Linux 8 | python-pillow-0:5.1.1-20.el8 | Fixed | RHSA-2024:3005 |
No package ranges for this CVE.
Remediation
Red Hat statement
This security vulnerability is categorized as having a moderate impact because it only results in increased memory consumption when exceptionally long strings are utilized as text input.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2023–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.13% (0.01131) | 65.22th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.04% (0.01038) | 59.34th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.57% (0.00568) | 65.92th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.92% (0.01918) | 72.36th | v4 (v2025.03.14) |
| Mar 28, 2025 | 0.57% (0.00568) | 65.94th | v4 (v2025.03.14) |
| Mar 27, 2025 | 1.92% (0.01918) | 81.19th | v4 (v2025.03.14) |
| Mar 25, 2025 | 0.57% (0.00568) | 65.81th | v4 (v2025.03.14) |
| Mar 24, 2025 | 1.92% (0.01918) | 81.69th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.57% (0.00568) | 66.59th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.10% (0.00101) | 43.16th | v3 (v2023.03.01) |
| Jul 10, 2024 | 0.06% (0.00055) | 23.14th | v3 (v2023.03.01) |
| Nov 12, 2023 | 0.06% (0.00055) | 21.06th | v3 (v2023.03.01) |
| Nov 10, 2023 | 0.05% (0.00049) | 16.48th | v3 (v2023.03.01) |
| Nov 3, 2023 | 0.04% (0.00045) | 12.64th | v3 (v2023.03.01) |
References (11)
- https://access.redhat.com/security/cve/CVE-2023-44271 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2247820 Issue Tracking
- https://devhub.checkmarx.com/cve-details/CVE-2023-44271 Third Party Advisory
- https://github.com/advisories/GHSA-8ghj-p4vj-mr35 Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2023-227.yaml
- https://github.com/python-pillow/Pillow/commit/1fe1bb49c452b0318cad12ea9d97c3bef188e9a7 Patch
- https://github.com/python-pillow/Pillow/pull/7244 Patch
- https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html mailing-list
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N2JOEDUJDQLCUII2LQYZYSM7RJL2I3P4 vendor-advisoryMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-44271
- https://www.cve.org/CVERecord?id=CVE-2023-44271
Change history (0)
No recorded changes yet.