CVE-2020-5310

NameCVE-2020-5310
DescriptionlibImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium
Debian Bugs948224

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pillow (PTS)jessie2.6.1-2+deb8u3fixed
jessie (security)2.6.1-2+deb8u4fixed
stretch4.0.0-4fixed
stretch (security)4.0.0-4+deb9u1fixed
buster5.4.1-2fixed
buster (security)5.4.1-2+deb10u1fixed
bullseye6.2.1-2vulnerable
sid7.0.0-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pillowsource(unstable)7.0.0-1948224
pillowsourcebuster(not affected)
pillowsourcejessie(not affected)
pillowsourcestretch(not affected)

Notes

[buster] - pillow <not-affected> (Vulnerability introduced later)
[stretch] - pillow <not-affected> (Vulnerable code not present)
[jessie] - pillow <not-affected> (The vulnerable code was introduced later)
Introduced by: https://github.com/python-pillow/Pillow/commit/f0436a4ddc954541fa10a531e2d9ea0c5ae2065d (5.3.0)
and https://github.com/python-pillow/Pillow/commit/e91b851fdc1c914419543f485bdbaa010790719f (6.0.0)
Fixed by: https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4 (6.2.2)

Search for package or bug name: Reporting problems