Bug 1789538 (CVE-2020-5310) - CVE-2020-5310 python-pillow: Integer overflow leading to buffer overflow in ImagingLibTiffDecode
Summary: CVE-2020-5310 python-pillow: Integer overflow leading to buffer overflow in I...
Status: NEW
Alias: CVE-2020-5310
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1789541 1789542
Blocks: 1789544
TreeView+ depends on / blocked
Reported: 2020-01-09 18:54 UTC by Pedro Sampaio
Modified: 2020-02-06 14:36 UTC (History)
19 users (show)

Fixed In Version: python-pillow 6.2.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Pedro Sampaio 2020-01-09 18:54:04 UTC
libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.

Upstream patch:




Comment 1 Pedro Sampaio 2020-01-09 19:03:55 UTC
Created python-pillow tracking bugs for this issue:

Affects: fedora-all [bug 1789541]

Created python3-pillow tracking bugs for this issue:

Affects: epel-7 [bug 1789542]

Comment 2 Jason Shepherd 2020-01-10 02:24:17 UTC
While Red Hat Quay includes the python-pillow it's not used, therefore this issue is rated moderate for Red Hat Quay.

Comment 4 Riccardo Schirone 2020-02-06 14:29:23 UTC
The vulnerability was introduced with https://github.com/python-pillow/Pillow/commit/f0436a4ddc954541fa10a531e2d9ea0c5ae2065d and https://github.com/python-pillow/Pillow/commit/e91b851fdc1c914419543f485bdbaa010790719f, which add support for reading tiled TIFF images and add the realloc call.

Comment 5 Riccardo Schirone 2020-02-06 14:36:04 UTC

This issue did not affect the versions of python-pillow as shipped with Red Hat Enterprise Linux 5, 6, 7, and 8 as they did not include support for tiled TIFF images, where the flaw lies.

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