Bug 2272563 (CVE-2024-28219) - CVE-2024-28219 python-pillow: buffer overflow in _imagingcms.c
Summary: CVE-2024-28219 python-pillow: buffer overflow in _imagingcms.c
Keywords:
Status: NEW
Alias: CVE-2024-28219
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2272569 2272567 2272568
Blocks: 2272557
TreeView+ depends on / blocked
 
Reported: 2024-04-01 23:34 UTC by Robb Gatica
Modified: 2024-07-02 15:20 UTC (History)
34 users (show)

Fixed In Version: pillow 10.3.0
Doc Type: ---
Doc Text:
A flaw was found in Pillow. The cms_transform_new function in src/_imagingcms.c does not validate the length of its parameters before copying them into fixed-size buffers, leading to a buffer overflow, resulting in a denial of service.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:3781 0 None None None 2024-06-10 18:37:39 UTC
Red Hat Product Errata RHSA-2024:4227 0 None None None 2024-07-02 15:20:28 UTC

Description Robb Gatica 2024-04-01 23:34:37 UTC
In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.

Reference:
https://pillow.readthedocs.io/en/stable/releasenotes/10.3.0.html#security

Upstream patch:
https://github.com/python-pillow/Pillow/commit/2a93aba5cfcf6e241ab4f9392c13e3b74032c061

Comment 1 Robb Gatica 2024-04-01 23:48:24 UTC
Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 2272567]


Created python3-pillow tracking bugs for this issue:

Affects: epel-all [bug 2272569]

Comment 5 errata-xmlrpc 2024-06-10 18:37:37 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 2.4 for RHEL 9
  Red Hat Ansible Automation Platform 2.4 for RHEL 8

Via RHSA-2024:3781 https://access.redhat.com/errata/RHSA-2024:3781

Comment 6 errata-xmlrpc 2024-07-02 15:20:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:4227 https://access.redhat.com/errata/RHSA-2024:4227


Note You need to log in before you can comment on or make changes to this bug.