CVE-2024-28219
JSON

6.7medium

Pillow buffer overflow vulnerability

Severity
6.7medium CVSS:3.1 by mitre
Exploit likelihood
1.00% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-44wm-f244-xhp3BIT-PILLOW-2024-28219PYSEC-2026-1793

Description

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
fedoraproject fedora39CVE List
python pillowbefore 10.3.0CVE List, NVD
debian debian_linux10.0CVE List, NVD
pillow (PyPI)before 10.3.0GitHub Advisory Database, PyPA Advisory Database
pillow (Bitnami)all versionsBitnami Vulnerability Database

All scores

mitre6.7medium CVSS:3.1CVSS:3.1/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:R
GitHub6.7high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database6.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-120CWE-676CWE-680

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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

NVD (es)

En _imagingcms.c en Pillow anterior a 10.3.0, existe un desbordamiento del búfer porque se usa strcpy en lugar de strncpy.

References

https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#securityarticle, release-notes, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/broken-link, vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2024/04/msg00008.htmladvisory, mailing-list, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5M/web
https://nvd.nist.gov/vuln/detail/CVE-2024-28219advisory, web
https://github.com/python-pillow/Pillow/commit/2a93aba5cfcf6e241ab4f9392c13e3b74032c061web
https://github.com/python-pillow/Pillowpackage
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4XLPUT3VK4GQ6EVY525TT2QNUIXNRU5Mweb
https://pypi.org/project/pillowpackage
https://github.com/advisories/GHSA-44wm-f244-xhp3advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2024-28219 changed 2025-11-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-44wm-f244-xhp3 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-28219 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1793 changed 2026-07-07CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PILLOW-2024-28219 changed 2026-09-10Apache-2.0