Skip to main content
No exploitation reportedFix available

CVE-2018-20406

No exploitation reported by the sources we read.

  • Published2018-12-23
  • Fixed in3.7.1
  • WeaknessCWE-190

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2018-12-2323:29CVE publishedNVD

Versions per branch

NVD
Python
BranchAffectedFixed in
3.x≥ 3.4.0, < 3.7.13.7.1
Fedoraproject fedora
BranchAffectedFixed in
28.x= 28no fix published
29.x= 29no fix published
30.x= 30no fix published
Debian debian linux
BranchAffectedFixed in
8.0= 8.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • firefox-atkSUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 2.26.1-2.8.4
  • firefox-cairoSUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 1.15.10-2.13.4
  • firefox-gdk-pixbufSUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 2.36.11-2.8.4
  • firefox-glib2SUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 2.54.3-2.14.7
  • firefox-gtk3SUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 3.10.9-2.15.3
  • firefox-harfbuzzSUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 1.7.5-2.7.4
  • firefox-libffiSUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 3.2.1.git259-2.3.3
  • firefox-libffi-gcc5SUSE:Linux Enterprise Server 11 SP4-LTSSall versions · fixed in 5.3.1+r233831-14.1

55 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-20406 Red Hat Product Security135 products fixed · 8 known affected

    python: Integer overflow in Modules/_pickle.c allows for memory exhaustion if serializing gigabytes of data

    rh-python35-python as a component of Red Hat Software Collections · rh-python35-python-debug as a component of Red Hat Software Collections · rh-python35-python-devel as a component of Red Hat Software Collections · +5 more

  • RHSA-2019:3725 Red Hat Product Security135 products fixed

    Red Hat Security Advisory: rh-python36-python security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Update Python to 3.7.1
  2. Vendor fix Red Hat Product Security RHSA-2019:3725 · 152 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. No fix available, says the vendor Red Hat Product Security CVE-2018-20406 · 8 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2018-12-23
Last modified
2026-10-15
NVD status
Modified
GitHub advisory
GHSA-p5h6-p5x2-5qxf

Frequently asked questions

What is CVE-2018-20406?

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.

Is CVE-2018-20406 actively exploited?

Active exploitation of CVE-2018-20406 has not been confirmed. Its EPSS score was 5.8% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-20406?

CVE-2018-20406 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running Python? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record