CVE & CISA-KEV Catalog

CVE-2018-20406

HIGHEPSS 92th pctl
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
python2.7Ubuntu
Fixed in:2.7.6-8ubuntu0.6+esm2USN-4127-2
Fixed in:2.7.12-1ubuntu0~16.04.8USN-4127-1
Fixed in:2.7.15-4ubuntu4~18.04.1USN-4127-1
python2.7-minimalUbuntu
Fixed in:2.7.6-8ubuntu0.6+esm2USN-4127-2
Fixed in:2.7.12-1ubuntu0~16.04.8USN-4127-1
Fixed in:2.7.15-4ubuntu4~18.04.1USN-4127-1
python3.10Ubuntu
Fixed in:3.10.12-1~22.04.4USN-6891-1
python3.10-minimalUbuntu
Fixed in:3.10.12-1~22.04.4USN-6891-1
python3.11Ubuntu
Fixed in:3.11.0~rc1-1~22.04.1~esm1USN-6891-1
Fixed in:3.11.6-3ubuntu0.1USN-6891-1
python3.11-minimalUbuntu
Fixed in:3.11.0~rc1-1~22.04.1~esm1USN-6891-1
Fixed in:3.11.6-3ubuntu0.1USN-6891-1
python3.12Ubuntu
Fixed in:3.12.0-1ubuntu0.1USN-6891-1
python3.12-minimalUbuntu
Fixed in:3.12.0-1ubuntu0.1USN-6891-1
python3.4Ubuntu
Fixed in:3.4.3-1ubuntu1~14.04.7+esm2USN-4127-2
python3.4-minimalUbuntu
Fixed in:3.4.3-1ubuntu1~14.04.7+esm2USN-4127-2
python3.5Ubuntu
Fixed in:3.5.2-2ubuntu0~16.04.4~14.04.1+esm1USN-6891-1
Fixed in:3.5.2-2ubuntu0~16.04.13+esm13USN-6891-1
Fixed in:3.5.2-2ubuntu0~16.04.8USN-4127-1
python3.5-minimalUbuntu
Fixed in:3.5.2-2ubuntu0~16.04.4~14.04.1+esm1USN-6891-1
Fixed in:3.5.2-2ubuntu0~16.04.8USN-4127-1
Fixed in:3.5.2-2ubuntu0~16.04.13+esm13USN-6891-1
python3.6Ubuntu
Fixed in:3.6.9-1~18.04ubuntu1.13+esm2USN-6891-1
Fixed in:3.6.8-1~18.04.2USN-4127-1
python3.6-minimalUbuntu
Fixed in:3.6.8-1~18.04.2USN-4127-1
Fixed in:3.6.9-1~18.04ubuntu1.13+esm2USN-6891-1
python3.7Ubuntu
Fixed in:3.7.5-2ubuntu1~18.04.2+esm3USN-6891-1
python3.7-minimalUbuntu
Fixed in:3.7.5-2ubuntu1~18.04.2+esm3USN-6891-1
python3.8Ubuntu
Fixed in:3.8.0-3ubuntu1~18.04.2+esm2USN-6891-1
Fixed in:3.8.10-0ubuntu1~20.04.10USN-6891-1
python3.8-minimalUbuntu
Fixed in:3.8.0-3ubuntu1~18.04.2+esm2USN-6891-1
Fixed in:3.8.10-0ubuntu1~20.04.10USN-6891-1
python3.9Ubuntu
Fixed in:3.9.5-3ubuntu0~20.04.1+esm2USN-6891-1
python3.9-minimalUbuntu
Fixed in:3.9.5-3ubuntu0~20.04.1+esm2USN-6891-1
Python 2Windows application
Affected:3.4.0 3.7.1Fixed in:3.7.1Python Software Foundation
Python 3.10Windows application
Affected:3.4.0 3.7.1Fixed in:3.7.1Python Software Foundation
Python 3.11Windows application
Affected:3.4.0 3.7.1Fixed in:3.7.1Python Software Foundation
Python 3.12Windows application
Affected:3.4.0 3.7.1Fixed in:3.7.1Python Software Foundation
Python 3.8Windows application
Affected:3.4.0 3.7.1Fixed in:3.7.1Python Software Foundation
Python 3.9Windows application
Affected:3.4.0 3.7.1Fixed in:3.7.1Python Software Foundation

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

5.79%probability of exploitation in 30 days
92ndpercentile

High risk: more likely to be exploited than 92% of all known CVEs.

References

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.390%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix
Embed a live status badge for CVE-2018-20406
CVE-2018-20406 severity badge

Markdown

[![CVE-2018-20406](https://tridentstack.com/cve/badge/CVE-2018-20406.svg)](https://tridentstack.com/cve/CVE-2018-20406)

HTML

<a href="https://tridentstack.com/cve/CVE-2018-20406"><img src="https://tridentstack.com/cve/badge/CVE-2018-20406.svg" alt="CVE-2018-20406"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.