PyPI: pillow
CVE-2023-44271
Safety vulnerability ID: SFTY-20231103-51767
Safety legacy ID: pyup.io-62156
Pillow 10.0.0 includes a fix for CVE-2023-44271: 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. https://github.com/python-pillow/Pillow/pull/7244
Overview
Pillow Denial of Service vulnerability
Advisory
Pillow 10.0.0 includes a fix for CVE-2023-44271: 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. https://github.com/python-pillow/Pillow/pull/7244
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20231103-51767/CVE-2023-44271
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-44271
- https://devhub.checkmarx.com/cve-details/CVE-2023-44271/
- https://github.com/python-pillow/Pillow/commit/0bb3f4fee9929f55c970a088026894116b1740fd
- https://github.com/python-pillow/Pillow/commit/1fe1bb49c452b0318cad12ea9d97c3bef188e9a7
- https://github.com/python-pillow/Pillow/commit/9a640e3157150e35f17354517e8c6304fc428060
- https://github.com/python-pillow/Pillow/pull/7244
- https://github.com/uploadcare/pillow-simd/commit/9a640e3157150e35f17354517e8c6304fc428060
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N2JOEDUJDQLCUII2LQYZYSM7RJL2I3P4/
- https://nvd.nist.gov/vuln/detail/CVE-2023-44271
- https://github.com/python-pillow/Pillow/pull/7244
- https://github.com/python-pillow/Pillow/commit/1fe1bb49c452b0318cad12ea9d97c3bef188e9a7
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2023-227.yaml
- https://devhub.checkmarx.com/cve-details/CVE-2023-44271
- https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N2JOEDUJDQLCUII2LQYZYSM7RJL2I3P4
- https://github.com/advisories/GHSA-8ghj-p4vj-mr35
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
