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

 

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

Published: July 1, 2020


Vulnerability identifier: #VU29438
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-10994
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 in "libImaging/Jpeg2KDecode.c". A remote attacker can create a specially crafted JP2 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-10994

Install updates from vendor's website.

Pillow - update to 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