cve.bz

CVE-2018-20406 Year 2038 problem, Y2K38, Y2038, Epochalypse

7.5 highExploit referenceEPSS 5.8%Fix available

High (7.5). EPSS 5.8% estimated probability of exploitation activity in the next 30 days.

On this page
Modules/_pickle.c in Python before 3.7.1 has an integer overflow via a large LONG_BINPUT value that is mishandled during a "resize to twice the size" attempt. This issue might cause memory exhaustion, but is only relevant if the pickle format is used for serializing tens or hundreds of gigabytes of data. This issue is fixed in: v3.4.10, v3.4.10rc1; v3.5.10, v3.5.10rc1, v3.5.7, v3.5.7rc1, v3.5.8, v3.5.8rc1, v3.5.8rc2, v3.5.9; v3.6.10, v3.6.10rc1, v3.6.11, v3.6.11rc1, v3.6.12, v3.6.7, v3.6.7rc1, v3.6.7rc2, v3.6.8, v3.6.8rc1, v3.6.9, v3.6.9rc1; v3.7.1, v3.7.1rc1, v3.7.1rc2, v3.7.2, v3.7.2rc1, v3.7.3, v3.7.3rc1, v3.7.4, v3.7.4rc1, v3.7.4rc2, v3.7.5, v3.7.5rc1, v3.7.6, v3.7.6rc1, v3.7.7, v3.7.7rc1, v3.7.8, v3.7.8rc1, v3.7.9.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
5.8% (unchanged from 5.8% a week ago; 5.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
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-2018-20406 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-20406?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-20406?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-2018-20406 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:pythonfrom 3.4.0 before 3.7.1
debian:debian_linux8.0
fedoraproject:fedora28
fedoraproject:fedora29
fedoraproject:fedora30

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8python3.43.4.2-1+deb8u2DLA-1663-1
Debian9python3.53.5.3-1+deb9u2DLA-2280-1
Ubuntu16.04:LTSpython2.72.7.12-1ubuntu0~16.04.8USN-4127-1
Ubuntu16.04:LTSpython3.53.5.2-2ubuntu0~16.04.8UBUNTU-CVE-2018-20406 USN-4127-1
Ubuntu18.04:LTSpython2.72.7.15-4ubuntu4~18.04.1USN-4127-1
Ubuntu18.04:LTSpython3.63.6.7-1~18.04UBUNTU-CVE-2018-20406 USN-4127-1
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.10USN-6891-1
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.4USN-6891-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm2USN-4127-2
UbuntuPro:14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7+esm2UBUNTU-CVE-2018-20406 USN-4127-2
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm1UBUNTU-CVE-2018-20406 USN-6891-1
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm13USN-6891-1
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm2USN-6891-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm3USN-6891-1
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatrhel_software_collections:3::el6rh-python36-python, rh-python36-python-libs, rh-python36-python-test and 5 more0:3.6.9-2.el6RHSA-2019:3725
Red Hatrhel_software_collections:3::el7rh-python36-python, rh-python36-python-libs, rh-python36-python-test and 5 more0:3.6.9-2.el7RHSA-2019:3725
SUSEEnterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4 and 12 morepython3, python3-base3.4.6-25.21.1SUSE-SU-2019:0243-1
SUSELinux Enterprise Module for Basesystem 15python3, python3-base3.6.5-3.8.1SUSE-SU-2019:0215-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1python3, python3-base3.6.10-3.42.2SUSE-SU-2020:0114-1
SUSELinux Enterprise Module for Development Tools 15python3-base3.6.5-3.8.1SUSE-SU-2019:0215-1
SUSELinux Enterprise Module for Development Tools 15, Linux Enterprise Module for Development Tools 15 SP1python3-base3.6.10-3.42.2SUSE-SU-2020:0114-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox68.2.0-78.51.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSMozillaFirefox-branding-SLED68-21.9.8SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-atk2.26.1-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-cairo1.15.10-2.13.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gdk-pixbuf2.36.11-2.8.4SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-glib22.54.3-2.14.7SUSE-SU-2019:14246-1
SUSELinux Enterprise Server 11 SP4-LTSSfirefox-gtk33.10.9-2.15.3SUSE-SU-2019:14246-1
8 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.0python3, python3-base3.6.5-lp150.2.6.1openSUSE-SU-2019:0155-1
openSUSELeap 15.1python3, python3-base3.6.10-lp151.6.7.1openSUSE-SU-2020:0086-1
openSUSETumbleweedpython363.6.15-1.1openSUSE-SU-2024:11284-1
Alpinev3.6, v3.7, v3.8python33.6.8-r0ALPINE-CVE-2018-20406

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This issue did not affect the versions of python as shipped with Red Hat Enterprise Linux 5, 6 and 7.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-python36-python-0:3.6.9-2.el6Fixed 2019-11-06RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python36-python-0:3.6.9-2.el7Fixed 2019-11-06RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSrh-python36-python-0:3.6.9-2.el7Fixed 2019-11-06RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-python36-python-0:3.6.9-2.el7Fixed 2019-11-06RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-python36-python-0:3.6.9-2.el7Fixed 2019-11-06RHSA-2019:3725
Red Hat Enterprise Linux 5pythonNot affected
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python36Not affected
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Software Collectionsrh-python35-pythonFix deferred

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-2018-20406.

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