cve.bz

CVE-2020-5313 Out-of-bounds Read

7.1 highEPSS 2.6%Fix available

High (7.1). EPSS 2.6% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 6.2.2.

On this page
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
EPSS
2.6% (unchanged from 2.6% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-5313 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5313?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5313?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-5313 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowbefore 6.2.2
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.10
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora30
fedoraproject:fedora31

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hj69-c76v-86wrPyPIpillow<6.2.26.2.2
PYSEC-2020-84PyPIpillow<6.2.26.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8pillow2.6.1-2+deb8u4DLA-2057-1
Debian9pillow4.0.0-4+deb9u1DSA-4631-1
Debian10pillow5.4.1-2+deb10u1DSA-4631-1
Debian12, 13, 14pillow7.0.0-1DEBIAN-CVE-2020-5313
Ubuntu16.04:LTSpillow3.1.2-0ubuntu1.3UBUNTU-CVE-2020-5313 USN-4272-1
Ubuntu18.04:LTSpillow5.1.0-1ubuntu0.2UBUNTU-CVE-2020-5313 USN-4272-1
UbuntuPro:14.04:LTSpillow2.3.0-1ubuntu3.4+esm1UBUNTU-CVE-2020-5313 USN-4272-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-pillow, python-pillow-qt, python-pillow-tk and 4 more0:2.0.0-21.gitd1c6db8.el7RHSA-2020:3887
Red Hatenterprise_linux:8::appstreampython-pillow, python3-pillow, python-pillow-debuginfo and 3 more0:5.1.1-12.el8_2RHSA-2020:3185
SUSEEnterprise Storage 5python-Pillow2.8.1-3.9.1SUSE-SU-2020:2057-1
SUSEHPE Helion OpenStack 8documentation-hpe-helion-openstack-user, documentation-hpe-helion-openstack-planning, documentation-hpe-helion-openstack-security and 3 more8.20200527-1.26.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8openstack-dashboard-theme-HPE8+git.1523473653.6599ec8-3.3.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev3-14.30.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ansible11.9.6-7.3.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1589740980.6c3bcdc-3.73.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cluster8.0+git.1585685203.3e71e49-3.36.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-freezer8.0+git.1586539529.b7d295f-3.21.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-input-model8.0+git.1589740934.0e0ad61-3.39.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-logging8.0+git.1591194866.b7375d0-3.24.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-mq8.0+git.1589715269.62ad6df-3.22.1SUSE-SU-2020:1901-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-neutron8.0+git.1590756744.ba84abc-3.42.1SUSE-SU-2020:1901-1
151 more for SUSE in the JSON and on SUSE's page.
Rocky Linux8python-pillow0:5.1.1-12.el8_2RLSA-2020:3185
Alpinev3.12, v3.13, v3.14 and 10 morepy3-pillow6.2.2-r0ALPINE-CVE-2020-5313

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; Rocky Linux's errata, BSD-3-Clause; 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

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7python-pillow-0:2.0.0-21.gitd1c6db8.el7Fixed 2020-09-29RHSA-2020:3887
Red Hat Enterprise Linux 8python-pillow-0:5.1.1-12.el8_2Fixed 2020-07-28RHSA-2020:3185
Red Hat Quay 3quay/clair-rhel8:v3.4.0-25Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-bridge-operator-bundle:v3.4.0-3Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-bridge-operator-rhel8:v3.4.0-17Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-builder-qemu-rhcos-rhel8:v3.4.0-17Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-builder-rhel8:v3.4.0-18Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-container-security-operator-bundle:v3.4.0-2Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-container-security-operator-rhel8:v3.4.0-2Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-openshift-bridge-rhel8-operator:v3.4.0-17Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-operator-bundle:v3.4.0-89Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-operator-rhel8:v3.4.0-132Fixed 2021-02-04RHSA-2021:0420
Red Hat Quay 3quay/quay-rhel8:v3.4.0-51Fixed 2021-02-04RHSA-2021:0420
Red Hat Enterprise Linux 5python-imagingOut of support scope
Red Hat Enterprise Linux 6python-imagingOut of support scope

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-5313.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON