CVE-2024-28219
CVE-2024-28219 is a medium-severity vulnerability in Python Pillow with a CVSS 3.x base score of 6.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-680.
Key facts
- Severity: Medium (CVSS 3.x base score 6.7)
- EPSS exploit prediction: 1% (58th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-1085
- Weakness: CWE-680
- Affected product: Python Pillow
- Published:
- Last modified:
Description
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
Frequently asked questions
- What is CVE-2024-28219?
- In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
- How severe is CVE-2024-28219?
- CVE-2024-28219 has a CVSS 3.x base score of 6.7, rated medium severity. It is exploitable over local access with high attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2024-28219 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (58th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-28219?
- CVE-2024-28219 primarily affects Python Pillow. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2024-28219?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-28219 have an EU (EUVD) identifier?
- Yes. CVE-2024-28219 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-1085.
- When was CVE-2024-28219 published?
- CVE-2024-28219 was published on 2024-04-03 and last updated on 2026-06-17.
References
- https://lists.debian.org/debian-lts-announce/2024/04/msg00008.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/
- https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#security
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/
Affected products (2)
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
More vulnerabilities in Python Pillow
- CVE-2014-3007 — Critical (CVSS 10.0): Python Image Library (PIL) 1.1.7 and earlier and Pillow 2.3 might allow remote attackers to execute arbitrary commands…
- CVE-2022-30595 — Critical (CVSS 9.8): libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
- CVE-2022-22817 — Critical (CVSS 9.8): PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python…
- CVE-2021-34552 — Critical (CVSS 9.8): Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters…
- CVE-2021-25289 — Critical (CVSS 9.8): An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr…
- CVE-2020-5312 — Critical (CVSS 9.8): libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
All CVEs affecting Python Pillow →
Other CWE-680 vulnerabilities
- CVE-2026-8376 — Critical (CVSS 9.8): Perl versions through 5.43.10 have a heap buffer overflow when compiling regular expressions with a repeated fixed…
- CVE-2025-54952 — Critical (CVSS 9.8): An integer overflow vulnerability in the loading of ExecuTorch models can cause smaller-than-expected memory regions to…
- CVE-2024-33078 — Critical (CVSS 9.8): Tencent Libpag v4.3 is vulnerable to Buffer Overflow. A user can send a crafted image to trigger a overflow leading to…
- CVE-2025-53510 — High (CVSS 8.8): A memory corruption vulnerability exists in the PSD Image Decoding functionality of the SAIL Image Decoding Library…
- CVE-2025-52930 — High (CVSS 8.8): A memory corruption vulnerability exists in the BMPv3 RLE Decoding functionality of the SAIL Image Decoding Library…
- CVE-2025-52456 — High (CVSS 8.8): A memory corruption vulnerability exists in the WebP Image Decoding functionality of the SAIL Image Decoding Library…