First published: Fri Jan 03 2020(Updated: )
A flaw was discovered in python-pillow does where it does not properly restrict operations within the bounds of a memory buffer when decoding PCX images. An application that uses python-pillow to decode untrusted images may be vulnerable to this flaw, which can allow an attacker to crash the application or potentially execute code on the system.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/python-imaging | <0:1.1.6-20.el6_10 | 0:1.1.6-20.el6_10 |
redhat/python-pillow | <0:2.0.0-20.gitd1c6db8.el7_7 | 0:2.0.0-20.gitd1c6db8.el7_7 |
redhat/python-pillow | <0:5.1.1-10.el8_1 | 0:5.1.1-10.el8_1 |
redhat/python-pillow | <0:5.1.1-10.el8_0 | 0:5.1.1-10.el8_0 |
Python Pillow | <6.2.2 | |
Canonical Ubuntu Linux | =14.04 | |
Canonical Ubuntu Linux | =16.04 | |
Canonical Ubuntu Linux | =18.04 | |
Canonical Ubuntu Linux | =19.10 | |
Debian Debian Linux | =9.0 | |
Debian Debian Linux | =10.0 | |
Fedoraproject Fedora | =30 | |
Fedoraproject Fedora | =31 | |
redhat/python-pillow | <6.2.2 | 6.2.2 |
debian/pillow | 8.1.2+dfsg-0.3+deb11u2 9.4.0-1.1+deb12u1 10.4.0-1 | |
pip/Pillow | <6.2.2 | 6.2.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2020-5312 is a vulnerability in libImaging/PcxDecode.c in Pillow before 6.2.2 that allows a PCX P mode buffer overflow.
The severity of CVE-2020-5312 is critical with a severity score of 9.8.
CVE-2020-5312 affects python-pillow versions before 6.2.2.
To fix the vulnerability CVE-2020-5312, update python-pillow to version 6.2.2 or later.
You can find more information about CVE-2020-5312 in the references provided: [link1](https://github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd), [link2](https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1789541).