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: 2272568 2272569 2272567
Blocks: 2272557
TreeView+ depends on / blocked
 
Reported: 2024-04-01 23:34 UTC by Robb Gatica
Modified: 2024-04-25 13:29 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)

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]


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