Read the docs
TI-2020-04366 Aliases CVE-2020-5311GHSA-r7rm-8j6h-r933

libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.

Priority MEDIUM 49CWE-120Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 3 fixed, 1 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-120 and the CVSS impact.

Summary

libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.

Why it matters now

EPSS 0.04212 91st percentileScored 2026-11-07
Fix Partial pillow (PyPI): 6.2.2Red Hat: 3 advisoriesRed Hat: 3 fixed, 1 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—pillow (PyPI)before 6.2.26.2.2Patch availableGHSA-r7rm-8j6h-r933
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • pillow (PyPI) Vendor— Affected before 6.2.2 Fixed in 6.2.2 Patch available GHSA-r7rm-8j6h-r933

CPE configurations NVD · 7

CPEVersionsRoleVendor
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*before 6.2.2Vulnerablepython-pillow
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:*:*:*:*18.04VulnerableCanonical
cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*19.10VulnerableCanonical
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*10.0VulnerableDebian
cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*30VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*31VulnerableFedoraproject
  • cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions before 6.2.2 Vulnerable ·python-pillow
  • cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:*:*:*:* Versions 18.04 Vulnerable ·Canonical
  • cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* Versions 19.10 Vulnerable ·Canonical
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
  • cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* Versions 30 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* Versions 31 Vulnerable ·Fedoraproject

Remediation

  • Fix · GHSA-r7rm-8j6h-r933 pillow (PyPI) Fixed in 6.2.2 Advisory →

Red Hat 3 advisories

  • RHSA-2021:0420 Released 2021-02-04 · Red Hat rating Moderate
    Red Hat Quay v3.4.0 security update
    • Quay v3 quay/clair-rhel8, quay/quay-bridge-operator-bundle, quay/quay-bridge-operator-rhel8 +8
  • RHSA-2020:0580 Released 2020-02-24 · Red Hat rating Important
    python-pillow security update
    • Red Hat Enterprise Linux AppStream (v. 8) python-pillow-5.1.1-10.el8_1, python3-pillow-5.1.1-10.el8_1
  • RHSA-2020:0566 Released 2020-02-20 · Red Hat rating Important
    python-pillow security update
    • Red Hat Enterprise Linux AppStream E4S (v. 8.0) python-pillow-5.1.1-10.el8_0, python3-pillow-5.1.1-10.el8_0

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 5AffectedNo fix planned: Out of support scope
Quay v3Fixed RHSA-2021:0420
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2020:0580
Red Hat Enterprise Linux AppStream E4S (v. 8.0)Fixed RHSA-2020:0566
Not affected: 2 products
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-5311
  2. 2026-10-03 Alias added: GHSA-r7rm-8j6h-r933

References

Sources