Out-of-bounds read in Pillow - CVE-2020-10378
Published: July 1, 2020
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
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
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
- https://github.com/python-pillow/Pillow/commit/6a83e4324738bb0452fbe8074a995b1c73f08de7#diff-9478f2787e3ae9668a15123b165c23ac
- https://github.com/python-pillow/Pillow/commits/master/src/libImaging
- https://github.com/python-pillow/Pillow/pull/4538
- https://pillow.readthedocs.io/en/stable/releasenotes/6.2.3.html
- https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html