CVE-2020-5313 json
Out-of-bounds Read in Pillow
published 6y ago modified 2mo ago also BIT-pillow-2020-5313 , EUVD-2020-0137 , GHSA-hj69-c76v-86wr , PYSEC-2020-84
- cvss
- 7.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.
Patch / fix
- pypi pillow 6.2.2
- bitnami pillow 6.2.2
- python pillow 6.2.2
- pillow Debian 14, Debian 13, Debian 12 7.0.0-1
debian advisories DEBIAN-CVE-2020-5313
- pillow Ubuntu 16.04 LTS 3.1.2-0ubuntu1.3
- pillow Ubuntu 18.04 LTS 5.1.0-1ubuntu0.2
- pillow Ubuntu Pro 14.04 LTS 2.3.0-1ubuntu3.4+esm1
ubuntu advisories UBUNTU-CVE-2020-5313
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-pillow RHEL 7 2.0.0-21.gitd1c6db8.el7
- python-pillow-qt RHEL 7 2.0.0-21.gitd1c6db8.el7
- python-pillow-tk RHEL 7 2.0.0-21.gitd1c6db8.el7
- python-pillow-sane RHEL 7 2.0.0-21.gitd1c6db8.el7
- python-pillow RHEL 8 5.1.1-12.el8_2
- python3-pillow RHEL 8 5.1.1-12.el8_2
red hat advisories RHSA-2020:3887RHSA-2020:3185
- kibana OpenStack Cloud Crowbar 9, OpenStack Cloud 9 4.6.3-4.3.2
- grafana OpenStack Cloud Crowbar 9, OpenStack Cloud 9 6.2.5-3.12.2
- ansible1 OpenStack Cloud 9 1.9.6-9.7.2
- ardana-mq OpenStack Cloud 9 9.0+git.1593618110.cbd1a37-3.16.2
- crowbar-core OpenStack Cloud Crowbar 9 6.0+git.1594619891.b75a61d0d-3.25.5
- rubygem-puma OpenStack Cloud Crowbar 9 2.16.0-4.9.1
- ardana-glance OpenStack Cloud 9 9.0+git.1593631708.9354a78-3.13.2
- ardana-manila OpenStack Cloud 9 9.0+git.1594158642.b5905e4-3.12.2
suse advisories SUSE-RU-2020:2161-1SUSE-RU-2020:2072-1SUSE-SU-2020:2057-1SUSE-SU-2020:1901-1
- python-pillow Rocky Linux 8 5.1.1-12.el8_2
rocky linux advisories RLSA-2020:3185
- py3-pillow Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 6.2.2-r0
alpine advisories ALPINE-CVE-2020-5313
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2020-5313 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-5313 updated cvss 8.2
python-pillow: out-of-bounds read in ImagingFliDecode when loading FLI images
-
Red Hat Enterprise Linux 5 python-imaging Red Hat Enterprise Linux 6 python-imaging, python-imaging-tk, python-imaging-saneaffected: no fix planned “Out of support scope”
-
Red Hat Quay v3 quay/quay-rhel8 v3.4.0-51, quay/clair-rhel8 v3.4.0-25, quay/quay-builder-rhel8 v3.4.0-18, quay/quay-operator-bundle v3.4.0-89, quay/quay-operator-rhel8 v3.4.0-132, quay/quay-bridge-operator-bundle v3.4.0-3, +5 morefixed: vendor fix RHSA-2021:0420
-
Red Hat Enterprise Linux AppStream (v. 8) python-pillow 5.1.1-12.el8_2, python3-pillow 5.1.1-12.el8_2fixed: vendor fix RHSA-2020:3185
-
Red Hat Enterprise Linux Client (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7 Red Hat Enterprise Linux Client Optional (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7, python-pillow-qt 2.0.0-21.gitd1c6db8.el7, python-pillow-tk 2.0.0-21.gitd1c6db8.el7, python-pillow-sane 2.0.0-21.gitd1c6db8.el7 Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7, python-pillow-qt 2.0.0-21.gitd1c6db8.el7, python-pillow-tk 2.0.0-21.gitd1c6db8.el7, python-pillow-sane 2.0.0-21.gitd1c6db8.el7 Red Hat Enterprise Linux Server (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7 Red Hat Enterprise Linux Server Optional (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7, python-pillow-qt 2.0.0-21.gitd1c6db8.el7, python-pillow-tk 2.0.0-21.gitd1c6db8.el7, python-pillow-sane 2.0.0-21.gitd1c6db8.el7 Red Hat Enterprise Linux Workstation (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7fixed: vendor fix RHSA-2020:3887
+1 more productsfewer
Red Hat Enterprise Linux Workstation Optional (v. 7) python-pillow 2.0.0-21.gitd1c6db8.el7, python-pillow-qt 2.0.0-21.gitd1c6db8.el7, python-pillow-tk 2.0.0-21.gitd1c6db8.el7, python-pillow-sane 2.0.0-21.gitd1c6db8.el7
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.64% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:N/A:P |
| OSV | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | <6.2.2 |
6.2.2 |
| bitnami | pillow | <6.2.2 |
6.2.2 |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/python-pillow/Pillow/commit/a09acd0decd8a87ccce939d5ff65dab59e7d365b
web, patch, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/
vendor-advisory, web
-
usn.ubuntu.com
/4272-1/
vendor-advisory, third-party-advisory, advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/
vendor-advisory, web
-
debian.org
/security/2020/dsa-4631
vendor-advisory, web, third-party-advisory, advisory
-
pillow.readthedocs.io
/en/stable/releasenotes/6.2.2.html
web, release-notes, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-5313
advisory, web
-
github.com
/advisories/GHSA-hj69-c76v-86wr
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-84.yaml
web
-
github.com
/python-pillow/Pillow
package
-
github.com
/python-pillow/Pillow/blob/master/CHANGES.rst#622-2020-01-02
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P
web
-
usn.ubuntu.com
/4272-1
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/
web
Sources
- CVE List CVE-2020-5313
- GitHub Advisory GHSA-hj69-c76v-86wr
- NVD CVE-2020-5313
- OSV BIT-pillow-2020-5313
- OSV PYSEC-2020-84
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.