Bug 2272563 (CVE-2024-28219)

Summary: CVE-2024-28219 python-pillow: buffer overflow in _imagingcms.c
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: adudiak, bbuckingham, bcourt, bdettelb, ehelms, epacific, hkataria, jcammara, jhardy, jmitchel, jneedle, jobarker, joyu, jsherril, jtanner, kaycoth, kholdawa, kshier, lzap, mabashia, mhulan, nmoumoul, omaciel, orabin, pcreech, rbobbitt, rchan, simaishi, smcdonal, stcannon, teagle, yguenane, zsadeh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2272569, 2272567, 2272568    
Bug Blocks: 2272557    

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

Comment 7 joyu 2024-08-06 22:41:43 UTC
Hi Redhat team,

May I know if Red Hat Enterprise Linux 9 is impacted?

Comment 8 errata-xmlrpc 2024-08-20 20:30:38 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.15 for RHEL 8

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