CVE-2023-44271
python-pillow: uncontrolled resource consumption when textlength in an ImageDraw instance operates on a long text argument
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-770
Affected packages · 4
Operating systems · 22 fixes
Oracle Linux 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-pillow +5 | 2.0.0-24.gitd1c6db8.el7_9 |
| 8 | python3-pillow +3 | 5.1.1-20.el8 |
Red Hat 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-pillow +5 | 0:2.0.0-24.gitd1c6db8.el7_9 | RHSA-2024:0345 |
| 8 | python3-pillow +3 | 0:5.1.1-20.el8 | RHSA-2024:3005 |
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | python311-pillow +1 | 9.5.0-150400.5.6.1 | SUSE-SU-2023:4528-1 |
| 15.5 | python311-pillow +1 | 9.5.0-150400.5.6.1 | SUSE-SU-2023:4528-1 |
alma 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow +3 | 5.1.1-20.el8 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | python-pillow-debuginfo +6 | 9.4.0-2.amzn2023.0.3 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | pillow | 5.4.1-2+deb10u5 |
| 11 | pillow | 8.1.2+dfsg-0.3+deb11u2 |
| 12 | pillow | 9.4.0-1.1+deb12u1 |
| 13 | pillow | 10.0.0-1 |
| 14 | pillow | 10.0.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| pillow | 9.4.0-1.1+deb12u1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python310-pillow +5 | 10.0.1-2.1 | openSUSE-SU-2024:13439-1 |
| Tumbleweed | python313-pillow +3 | 12.3.0-1.1 | openSUSE-SU-2026:11261-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-pillow | 5.1.1-20.el8 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | pillow | 5.1.0-1ubuntu0.8+esm2 |
| 20.04 | pillow | 7.0.0-4ubuntu0.8 |
| 20.04-ESM | pillow | 7.0.0-4ubuntu0.8 |
| 22.04 | pillow | 9.0.1-1ubuntu0.2 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:3005
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-44271
- bugzilla.redhat.com https://bugzilla.redhat.com/2247820
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2247820
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-44271
- devhub.checkmarx.com https://devhub.checkmarx.com/cve-details/CVE-2023-44271
- devhub.checkmarx.com https://devhub.checkmarx.com/cve-details/CVE-2023-44271/
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2024-3005.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2024:3005
Show all 23 references
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2023-227.yaml
- github.com https://github.com/python-pillow/Pillow
- github.com https://github.com/python-pillow/Pillow/commit/1fe1bb49c452b0318cad12ea9d97c3bef188e9a7
- github.com https://github.com/python-pillow/Pillow/pull/7244
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-44271.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-3005.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N2JOEDUJDQLCUII2LQYZYSM7RJL2I3P4
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N2JOEDUJDQLCUII2LQYZYSM7RJL2I3P4/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-44271
- ubuntu.com https://ubuntu.com/security/notices/USN-6618-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8135-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-44271
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.