Live threats

All CVEs / Python

CVE-2020-5310Python Pillow

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Jan 3, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-190
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pillow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pillow < 6.2.2 6.2.2 pip install "pillow>=6.2.2"
PyPI pillow < 6.2.2 6.2.2 pip install "pillow>=6.2.2"

Per OSV / GitHub Advisories (GHSA-vcqg-3p29-xw73, PYSEC-2020-81). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonpillow< 6.2.2
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux19.10
fedoraprojectfedora30
fedoraprojectfedora31

Official sources

References

Links published by the sources. Open them with care.