Out-of-bounds read in Pillow - CVE-2020-11538

 

Out-of-bounds read in Pillow - CVE-2020-11538

Published: July 1, 2020


Vulnerability identifier: #VU29437
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-11538
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition within the parsing of SGI image files in "libImaging/SgiRleDecode.c". A remote attacker can create a specially crafted SGI file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system.


Affected software

Pillow
python-pillow (Red Hat package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
python3-pil (Ubuntu package)
python-pil (Ubuntu package)
python3-pillow
python3-pillow-help
python3-pillow-devel
python2-pillow-help
python2-pillow-devel
python2-pillow
python-pillow-debugsource
python-pillow-debuginfo
python-pillow
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Ubuntu
openEuler
Fedora

How to mitigate CVE-2020-11538

Install updates from vendor's website.

Pillow - update to 7.1.0
python-pillow (Red Hat package) - addressed in versions 5.1.1-11.el8_0, 5.1.1-11.el8_1, 5.1.1-12.el8_2
python3-pil (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.4, 5.1.0-1ubuntu0.3, 7.0.0-4ubuntu0.1
python-pil (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.4, 5.1.0-1ubuntu0.3
python3-pillow - update to 5.3.0-7
python3-pillow-help - update to 5.3.0-7
python3-pillow-devel - update to 5.3.0-7
python2-pillow-help - update to 5.3.0-7
python2-pillow-devel - update to 5.3.0-7
python2-pillow - update to 5.3.0-7
python-pillow-debugsource - update to 5.3.0-7
python-pillow-debuginfo - update to 5.3.0-7
python-pillow - update to 5.3.0-7
python-pillow - addressed in versions 6.2.2-3.fc31, 7.0.0-4.fc32

External References

Related Security Bulletins