Skip to content
Fencer Vulns
medium 6.7

CVE-2024-28219 json

Pillow buffer overflow vulnerability

published 2024-04-03 2 y ago modified 2026-09-10 59 d ago also BIT-pillow-2024-28219 , EUVD-2024-1085 , GHSA-44wm-f244-xhp3 , PYSEC-2026-1793

cvss
6.7
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 62%
public exploits
0
none known

Summary

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

Patch / fix

  • pypi pillow 10.3.0
  • python pillow 10.3.0
  • pillow Debian 12 9.4.0-1.1+deb12u1
  • pillow Debian 14, Debian 13 10.3.0-1

debian advisories DEBIAN-CVE-2024-28219

  • pillow Ubuntu 20.04 LTS 7.0.0-4ubuntu0.9
  • pillow Ubuntu 22.04 LTS 9.0.1-1ubuntu0.3
  • pillow Ubuntu 24.04 LTS 10.2.0-1ubuntu1
  • pillow Ubuntu Pro 14.04 LTS 2.3.0-1ubuntu3.4+esm4
  • pillow Ubuntu Pro 16.04 LTS 3.1.2-0ubuntu1.6+esm2
  • pillow Ubuntu Pro 18.04 LTS 5.1.0-1ubuntu0.8+esm1
  • pillow-python2 Ubuntu Pro 20.04 LTS 6.2.1-3ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2024-28219

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • receptor ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el8ap
  • receptor ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el9ap
  • python-idna ansible automation platform developer 2.4, ansible automation platform 2.4 3.7-1.el9ap
  • receptorctl ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el8ap
  • receptorctl ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 1.4.8-1.el9ap
  • python-black ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 22.8.0-2.el9ap
  • python3-idna ansible automation platform developer 2.4, ansible automation platform 2.4 3.7-1.el9ap
  • python-jinja2 ansible automation platform inside 2.4, ansible automation platform developer 2.4, ansible automation platform 2.4 3.1.4-1.el9ap

red hat advisories RHSA-2024:3781RHSA-2024:5662RHSA-2024:4227

  • python-Pillow OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 4.2.1-3.29.2
  • venv-openstack-horizon OpenStack Cloud 8 12.0.5~dev6-14.58.2
  • venv-openstack-horizon-hpe HPE Helion OpenStack 8 12.0.5~dev6-14.58.2
  • python-Pillow OpenStack Cloud Crowbar 9, OpenStack Cloud 9 5.2.0-3.26.2
  • venv-openstack-horizon OpenStack Cloud 9 14.1.1~dev11-4.55.2
  • python-Pillow SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Python 3 15 SP5 +3 more 9.5.0-150400.5.15.1
  • python-Pillow openSUSE Leap 15.5 7.2.0-150300.3.9.1

suse advisories SUSE-SU-2024:1268-1SUSE-SU-2024:1267-1SUSE-SU-2024:1258-1SUSE-SU-2024:1154-1

  • python-Pillow openSUSE Tumbleweed 12.3.0-1.1
  • python-Pillow openSUSE Tumbleweed 10.3.0-1.1

opensuse advisories openSUSE-SU-2026:11261-1openSUSE-SU-2024:13827-1

  • python3-pillow AlmaLinux 8 5.1.1-21.el8_10
  • python3-pillow-tk AlmaLinux 8 5.1.1-21.el8_10

almalinux advisories ALSA-2024:4227

  • python-pillow Rocky Linux 8 5.1.1-21.el8_10

rocky linux advisories RLSA-2024:4227

  • py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 10.3.0-r0

alpine advisories ALPINE-CVE-2024-28219

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-28219 updated cvss 6.5

python-pillow: buffer overflow in _imagingcms.c

  • Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-sane
    affected: workaround, no fix planned “Make sure the ImageCms.buildTransform function is not called with the InMode or OutMode arguments with a string bigger than 8 bytes.”
  • Red Hat Quay 3 quay/quay-rhel8
    affected: workaround, no fix available “Make sure the ImageCms.buildTransform function is not called with the InMode or OutMode arguments with a string bigger than 8 bytes.”
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-pillow 10.3.0-1.el8ap, python3x-pillow 10.3.0-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-pillow 10.3.0-1.el9ap, python3-pillow 10.3.0-1.el9ap
    fixed: vendor fix “Make sure the ImageCms.buildTransform function is not called with the InMode or OutMode arguments with a string bigger than 8 bytes.” RHSA-2024:3781
  • Red Hat Enterprise Linux AppStream (v. 8) python-pillow 5.1.1-21.el8_10, python3-pillow 5.1.1-21.el8_10 Red Hat Enterprise Linux CRB (v. 8) python3-pillow 5.1.1-21.el8_10, python3-pillow-tk 5.1.1-21.el8_10
    fixed: vendor fix “Make sure the ImageCms.buildTransform function is not called with the InMode or OutMode arguments with a string bigger than 8 bytes.” RHSA-2024:4227
  • Red Hat Satellite 6.15 for RHEL 8 python-pillow 10.3.0-1.el8pc, python3.11-pillow 10.3.0-1.el8pc
    fixed: vendor fix “Make sure the ImageCms.buildTransform function is not called with the InMode or OutMode arguments with a string bigger than 8 bytes.” RHSA-2024:5662
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 receptor 1.4.8-1.el8ap, python39-idna 3.7-1.el8ap, python3x-idna 3.7-1.el8ap, receptorctl 1.4.8-1.el8ap, ansible-core 2.15.11-1.el8ap, ansible-test 2.15.11-1.el8ap, +37 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 receptor 1.4.8-1.el9ap, python-idna 3.7-1.el9ap, python3-idna 3.7-1.el9ap, receptorctl 1.4.8-1.el9ap, python-black 22.8.0-2.el9ap, python-jinja2 3.1.4-1.el9ap, +37 more Red Hat Satellite 6.15 for RHEL 8 libcomps 0.1.21-1.el8pc, foreman 3.9.1.9-1.el8sat, satellite 6.15.3-1.el8sat, python-jinja2 3.1.4-1.el8pc, foreman-cli 3.9.1.9-1.el8sat, foreman-ec2 3.9.1.9-1.el8sat, +31 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-25-203-04 updated cvss 6.7

Schneider Electric EcoStruxure Power Operation (Update A)

  • Schneider Electric EcoStruxure Power Operation (EPO) 2022 <=CU6 Schneider Electric EcoStruxure Power Operation (EPO) 2024 <=CU1
    affected: mitigation “If users choose not to apply the remediation mentioned above, Schneider Electric recommends the following:” community.se.com

From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.00% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.7 CVSS:3.1/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:R
GitHub 3.1 6.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 6.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 6.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi pillow
<10.3.0
10.3.0
bitnami pillow
all versions
no fix listed

Affected products

  • fedoraproject fedora
  • python pillow
  • debian debian_linux

Classification

Weakness
  • CWE-680 Integer Overflow to Buffer Overflow
  • CWE-120 Buffer Copy without Checking Size of Input
  • CWE-676 Use of Potentially Dangerous Function

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.