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

 

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

Published: July 1, 2020


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

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to an out-of-bounds read in "libImaging/PcxDecode.c" that occurs when reading PCX files where state->shuffle is instructed to read beyond state->buffer. A remote attacker can create a specially crafted PCX file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system. 


Affected software

Pillow
Ubuntu
openEuler
Fedora
python-pil (Ubuntu package)
python3-pil (Ubuntu package)
python-pillow
python-pillow-debuginfo
python-pillow-debugsource
python2-pillow
python2-pillow-devel
python2-pillow-help
python3-pillow
python3-pillow-devel
python3-pillow-help

How to mitigate CVE-2020-10378

Install update from vendor's website.

Pillow - addressed in versions 6.2.3, 7.1.0
python-pil (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.4, 5.1.0-1ubuntu0.3
python3-pil (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.4, 5.1.0-1ubuntu0.3, 7.0.0-4ubuntu0.1
python-pillow - update to 5.3.0-7
python-pillow-debuginfo - update to 5.3.0-7
python-pillow-debugsource - update to 5.3.0-7
python2-pillow - update to 5.3.0-7
python2-pillow-devel - update to 5.3.0-7
python2-pillow-help - update to 5.3.0-7
python3-pillow - update to 5.3.0-7
python3-pillow-devel - update to 5.3.0-7
python3-pillow-help - 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