cve.bz

CVE-2024-28219 Integer Overflow to Buffer Overflow

5.9 mediumEPSS 1.0%Fix available

Medium (5.9). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 10.3.0.

On this page
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 64th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-04-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-680 Integer Overflow to Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-28219 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-28219?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-28219?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-28219 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowbefore 10.3.0
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-44wm-f244-xhp3PyPIpillow<10.3.010.3.0
PYSEC-2026-1793PyPIpillow<10.3.010.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10pillow5.4.1-2+deb10u6DLA-3786-1
Debian11pillow8.1.2+dfsg-0.3+deb11u2DSA-5704-1
Debian12pillow9.4.0-1.1+deb12u1DEBIAN-CVE-2024-28219 DSA-5704-1
Debian13, 14pillow10.3.0-1DEBIAN-CVE-2024-28219
Ubuntu20.04:LTSpillow7.0.0-4ubuntu0.9UBUNTU-CVE-2024-28219 USN-6744-1
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.3UBUNTU-CVE-2024-28219 USN-6744-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1UBUNTU-CVE-2024-28219 USN-6744-3
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm4UBUNTU-CVE-2024-28219 USN-6744-1
UbuntuPro:16.04:LTSpillow3.1.2-0ubuntu1.6+esm2UBUNTU-CVE-2024-28219 USN-6744-1
UbuntuPro:18.04:LTSpillow5.1.0-1ubuntu0.8+esm1UBUNTU-CVE-2024-28219 USN-6744-1
UbuntuPro:20.04:LTSpillow-python26.2.1-3ubuntu0.1~esm2UBUNTU-CVE-2024-28219 USN-6744-2
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8automation-hub, python39-galaxy-ng, python3x-galaxy-ng0:4.9.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.5-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-gunicorn, python3x-gunicorn0:22.0.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more0:10.3.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pydantic, python3x-pydantic0:1.10.15-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-social-auth-app-django, python3x-social-auth-app-django0:5.4.1-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-sqlparse, python3x-sqlparse0:0.5.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-idna, python3x-idna0:3.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-requests, python3x-requests0:2.32.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-black, python3x-black0:22.8.0-2.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-cryptography, python3x-cryptography, python39-cryptography-debuginfo and 1 more0:42.0.5-1.el8apRHSA-2024:3781
22 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev6-14.58.2SUSE-SU-2024:1268-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Pillow4.2.1-3.29.2SUSE-SU-2024:1268-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Python 3 15 SP5 and 2 morepython-Pillow9.5.0-150400.5.15.1SUSE-SU-2024:1258-1
SUSEOpenStack Cloud 8venv-openstack-horizon12.0.5~dev6-14.58.2SUSE-SU-2024:1268-1
SUSEOpenStack Cloud 9venv-openstack-horizon14.1.1~dev11-4.55.2SUSE-SU-2024:1267-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Pillow5.2.0-3.26.2SUSE-SU-2024:1267-1
openSUSELeap 15.5python-Pillow7.2.0-150300.3.9.1SUSE-SU-2024:1154-1
openSUSELeap 15.5python-Pillow9.5.0-150400.5.15.1SUSE-SU-2024:1258-1
openSUSETumbleweedpython-Pillow10.3.0-1.1openSUSE-SU-2024:13827-1
openSUSETumbleweedpython-Pillow12.3.0-1.1openSUSE-SU-2026:11261-1
AlmaLinux8python3-pillow, python3-pillow-tk, python3-pillow-doc and 1 more5.1.1-21.el8_10ALSA-2024:4227
Rocky Linux8python-pillow0:5.1.1-21.el8_10RLSA-2024:4227
Alpinev3.19, v3.20, v3.21 and 3 morepy3-pillow10.3.0-r0ALPINE-CVE-2024-28219

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw can be triggered when the ImageCms.buildTransform function is called with the InMode or OutMode arguments with a string larger than 8 bytes. An application is not vulnerable if these parameters are not controlled by the user or are validated before the function is called. Additionally, the Pillow ImageCms module functions should not be exposed to untrusted usage without input validation. For this reason, this flaw has been rated with a moderate impact.

Red Hat's mitigation

Make sure the ImageCms.buildTransform function is not called with the InMode or OutMode arguments with a string bigger than 8 bytes.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-pillow-0:10.3.0-1.el8apFixed 2024-06-10RHSA-2024:3781
Red Hat Ansible Automation Platform 2.4 for RHEL 9python-pillow-0:10.3.0-1.el9apFixed 2024-06-10RHSA-2024:3781
Red Hat Enterprise Linux 8python-pillow-0:5.1.1-21.el8_10Fixed 2024-07-02RHSA-2024:4227
Red Hat Satellite 6.15 for RHEL 8python-pillow-0:10.3.0-1.el8pcFixed 2024-08-20RHSA-2024:5662
Red Hat Enterprise Linux 7python-pillowOut of support scope
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-28219.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-203-04Schneider Electric EcoStruxure Power Operation (Update A)2025-07-22Commercial Facilities, Critical Manufacturing, EnergySchneider Electric EcoStruxure Power Operation (EPO) 2022: <=CU6, Schneider Electric EcoStruxure Power Operation (EPO) 2024: <=CU1none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-680 (11).

References

Check your stackJSON