CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 4.1% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 6.2.2.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hpillow (PyPI): fixed in 6.2.2Explain CVE-2020-5311 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5311?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5311?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-5311 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:pillow | before 6.2.2 |
| 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 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-r7rm-8j6h-r933 | PyPI | pillow | <6.2.2 | 6.2.2 |
| PYSEC-2020-82 | PyPI | pillow | <6.2.2 | 6.2.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | pillow | 7.0.0-1 | DEBIAN-CVE-2020-5311 |
| Ubuntu | 16.04:LTS | pillow | 3.1.2-0ubuntu1.3 | USN-4272-1 |
| Ubuntu | 18.04:LTS | pillow | 5.1.0-1ubuntu0.2 | UBUNTU-CVE-2020-5311 USN-4272-1 |
| Ubuntu | Pro:14.04:LTS | pillow | 2.3.0-1ubuntu3.4+esm1 | USN-4272-1 |
| Red Hat | enterprise_linux:8::appstream | python-pillow, python3-pillow, python-pillow-debuginfo and 3 more | 0:5.1.1-10.el8_1 | RHSA-2020:0580 |
| Red Hat | rhel_e4s:8.0::appstream | python-pillow, python3-pillow, python-pillow-debuginfo and 3 more | 0:5.1.1-10.el8_0 | RHSA-2020:0566 |
| SUSE | OpenStack Cloud 9 | ansible1 | 1.9.6-9.7.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-ansible | 9.0+git.1591138508.e269bdb-3.22.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-cobbler | 9.0+git.1588181228.bae3b1f-3.13.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-glance | 9.0+git.1593631708.9354a78-3.13.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-input-model | 9.0+git.1589740948.c24fc0b-3.19.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-logging | 9.0+git.1591193994.d93b668-3.13.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-manila | 9.0+git.1594158642.b5905e4-3.12.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-monasca | 9.0+git.1589385256.7fbfaaf-3.19.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-mq | 9.0+git.1593618110.cbd1a37-3.16.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-neutron | 9.0+git.1590756257.e09d54f-3.22.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-octavia | 9.0+git.1590079609.a2ae6ab-3.19.2 | SUSE-RU-2020:2161-1 |
| SUSE | OpenStack Cloud 9 | ardana-tempest | 9.0+git.1593033709.9495bb2-3.16.2 | SUSE-RU-2020:2161-1 |
| 52 more for SUSE in the JSON and on SUSE's page. | ||||
| Alpine | v3.12, v3.13, v3.14 and 10 more | py3-pillow | 6.2.2-r0 | ALPINE-CVE-2020-5311 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpine.
Red Hat rates this Important.
This issue did not affect the versions of python-pillow and python-imaging as shipped with Red Hat Enterprise Linux 6, and 7 as they did not include the SGI RLE image decoder, where the flaw lies.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | python-pillow-0:5.1.1-10.el8_1 | Fixed 2020-02-24 | RHSA-2020:0580 |
| Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions | python-pillow-0:5.1.1-10.el8_0 | Fixed 2020-02-20 | RHSA-2020:0566 |
| Red Hat Quay 3 | quay/clair-rhel8:v3.4.0-25 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-bridge-operator-bundle:v3.4.0-3 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-bridge-operator-rhel8:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-builder-qemu-rhcos-rhel8:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-builder-rhel8:v3.4.0-18 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-container-security-operator-bundle:v3.4.0-2 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-container-security-operator-rhel8:v3.4.0-2 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-openshift-bridge-rhel8-operator:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-operator-bundle:v3.4.0-89 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-operator-rhel8:v3.4.0-132 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-rhel8:v3.4.0-51 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Enterprise Linux 5 | python-imaging | Out of support scope | |
| Red Hat Enterprise Linux 6 | python-imaging | Not affected | |
| Red Hat Enterprise Linux 7 | python-pillow | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-5311.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).