Out-of-bounds write in Pillow - CVE-2020-35654
Published: January 11, 2021
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a boundary error when processing TIFF files. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.
Affected software
Gentoo Linux
Arch Linux
Ubuntu
Fedora
py3-pillow (Alpine package)
python3-pil (Ubuntu package)
python-pil (Ubuntu package)
python-pillow
mingw-python-pillow
How to mitigate CVE-2020-35654
py3-pillow (Alpine package) - update to 8.1.0-r0
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
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