SB2020070118 - Multiple vulnerabilities in Pillow
Published: July 1, 2020
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 5 secuirty vulnerabilities.
1) Out-of-bounds read (CVE-ID: CVE-2020-10177)
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition in "libImaging/FliDecode.c". A remote attacker can trigger out-of-bounds read error and read contents of memory on the system.
2) Out-of-bounds read (CVE-ID: CVE-2020-11538)
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition within the parsing of SGI image files in "libImaging/SgiRleDecode.c". A remote attacker can create a specially crafted SGI file, trick the victim into opening it, trigger out-of-bounds read error and read contents of memory on the system.
3) Out-of-bounds read (CVE-ID: CVE-2020-10994)
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.
4) Out-of-bounds read (CVE-ID: CVE-2020-10378)
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.
5) Buffer overflow (CVE-ID: CVE-2020-10379)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in "libImaging/TiffDecode.c". A remote attacker can trigger memory corruption and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
Install update from vendor's website.
References
- https://github.com/python-pillow/Pillow/commits/master/src/libImaging
- https://github.com/python-pillow/Pillow/pull/4503
- 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
- https://github.com/python-pillow/Pillow/pull/4504
- https://pillow.readthedocs.io/en/stable/releasenotes/index.html
- https://github.com/python-pillow/Pillow/commits/master/src/libImaging/
- https://github.com/python-pillow/Pillow/pull/4505
- https://pillow.readthedocs.io/en/stable/releasenotes/
- https://github.com/python-pillow/Pillow/commit/6a83e4324738bb0452fbe8074a995b1c73f08de7#diff-9478f2787e3ae9668a15123b165c23ac
- https://github.com/python-pillow/Pillow/commit/46f4a349b88915787fea3fb91348bb1665831bbb#diff-9478f2787e3ae9668a15123b165c23ac