cve.bz

CVE-2020-5310 Year 2038 problem, Y2K38, Y2038, Epochalypse

8.8 highEPSS 2.0%Fix available

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

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

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
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-5310 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5310?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5310?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-5310 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
fedoraproject:fedora30
fedoraproject:fedora31

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vcqg-3p29-xw73PyPIpillow<6.2.26.2.2
PYSEC-2020-81PyPIpillow<6.2.26.2.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pillow7.0.0-1DEBIAN-CVE-2020-5310
Alpinev3.12, v3.13, v3.14 and 10 morepy3-pillow6.2.2-r0ALPINE-CVE-2020-5310

From the distributions' data via OSV.dev: the Debian Security Tracker; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue did not affect the versions of python-pillow as shipped with Red Hat Enterprise Linux 5, 6, 7, and 8 as they did not include support for tiled TIFF images, where the flaw lies.

ProductPackageStateAdvisory
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-imagingNot affected
Red Hat Enterprise Linux 6python-imagingNot affected
Red Hat Enterprise Linux 7python-pillowNot affected
Red Hat Enterprise Linux 8python-pillowNot affected

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

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

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

References

Check your stackJSON