CVE-2018-20406
Reported by mitre · Published December 23, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3.4 | Ubuntu:Pro:14.04:LTS | 3.4.3-1ubuntu1~14.04.7+esm2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| amazon:2 | python | 0 |
| amazon:2 | python3-devel | 0 |
| amazon:2 | tkinter | 0 |
| amazon:2 | python-devel | 0 |
| amazon:2 | python-tools | 0 |
| amazon:2 | python3-tools | 0 |
| amazon:2 | python-debug | 0 |
| amazon:2 | python3 | 0 |
| amazon:2 | python-test | 0 |
| amazon:2 | python-libs | 0 |
| amazon:2 | python3-debug | 0 |
| amazon:2 | python3-test | 0 |
| alpine | python3 | 0 |
| amazon:2 | python3-libs | 0 |
| amazon:2 | python3-tkinter | 0 |
Timeline
- Dec 23, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 6, 2026 Security Advisory (11 in total, the first dated here)
- Sep 21, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-20406
vulnetix vdb fixes CVE-2018-20406
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-20406/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [debian-lts-announce] 20190207 [SECURITY] [DLA 1663-1] python3.4 security update mailing-listx_refsource_MLIST
- x_refsource_MISC
- FEDORA-2019-6e1938a3c5 vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-6baeb15da3 vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-cf725dd20b vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-6b02154aa0 vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-7d9f3cf3ce vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-51f1e08207 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- USN-4127-2 vendor-advisoryx_refsource_UBUNTU
- USN-4127-1 vendor-advisoryx_refsource_UBUNTU
- RHSA-2019:3725 vendor-advisoryx_refsource_REDHAT
- openSUSE-SU-2020:0086 vendor-advisoryx_refsource_SUSE
- [debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update mailing-listx_refsource_MLIST