CVE Vulnerabilities

CVE-2024-28219

Integer Overflow to Buffer Overflow

Published: Apr 03, 2024 | Modified: Nov 04, 2025
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

Weakness

The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.

Affected Software

NameVendorStart VersionEnd Version
PillowPython*10.3.0 (excluding)
Red Hat Ansible Automation Platform 2.4 for RHEL 8RedHatpython3x-pillow-0:10.3.0-1.el8ap*
Red Hat Ansible Automation Platform 2.4 for RHEL 9RedHatpython-pillow-0:10.3.0-1.el9ap*
Red Hat Enterprise Linux 8RedHatpython-pillow-0:5.1.1-21.el8_10*
Red Hat Satellite 6.15 for RHEL 8RedHatpython-pillow-0:10.3.0-1.el8pc*
Red Hat Satellite 6.15 for RHEL 8RedHatpython-pillow-0:10.3.0-1.el8pc*
PillowUbuntuesm-infra-legacy/trusty*
PillowUbuntuesm-infra/bionic*
PillowUbuntuesm-infra/focal*
PillowUbuntuesm-infra/xenial*
PillowUbuntufocal*
PillowUbuntujammy*
PillowUbuntumantic*
PillowUbuntunoble*
PillowUbuntutrusty/esm*
PillowUbuntuupstream*
Pillow-python2Ubuntuesm-apps/focal*
Pillow-python2Ubuntufocal*

References