Out-of-bounds read in Pillow - CVE-2020-10378
Published: July 1, 2020
Pillow
Alex Clark and Contributors
Description
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.
Remediation
External links
- 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