Buffer overflow in Pillow - CVE-2020-35655
Published: January 11, 2021
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing SGI files. A remote attacker can create a specially crafted SGI file, trick the victim into opening it, trigger memory corruption and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Arch Linux
Ubuntu
Fedora
py3-pillow (Alpine package)
python-pillow
mingw-python-pillow
python3-pil (Ubuntu package)
python-pil (Ubuntu package)
How to mitigate CVE-2020-35655
py3-pillow (Alpine package) - addressed in versions 7.1.2-r1, 7.2.0-r1, 8.1.0-r0
python-pillow - addressed in versions 7.0.0-5.fc32, 7.2.0-3.fc33
mingw-python-pillow - update to 7.2.0-3.fc33
python3-pil (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.5, 5.1.0-1ubuntu0.4, 7.0.0-4ubuntu0.2, 7.2.0-1ubuntu0.1
python-pil (Ubuntu package) - addressed in versions 3.1.2-0ubuntu1.5, 5.1.0-1ubuntu0.4