Integer overflow in Python
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.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.058, 93.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Python
- Debian Linux — versions 8.0
- Fedoraproject Fedora — versions 28, 29, 30
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (mtribak/cve-ai-scanner). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugs.python.org/issue34656 (Exploit, Patch, Issue Tracking, Vendor Advisory)
- [debian-lts-announce] 20190207 [SECURITY] [DLA 1663-1] python3.4 security update (mailing-list, Mailing List, Third Party Advisory)
- github.com/python/cpython/commit/a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd (Patch, Third Party Advisory)
- FEDORA-2019-6e1938a3c5 (vendor-advisory)
- FEDORA-2019-6baeb15da3 (vendor-advisory)
- FEDORA-2019-cf725dd20b (vendor-advisory)
- FEDORA-2019-6b02154aa0 (vendor-advisory)
- FEDORA-2019-7d9f3cf3ce (vendor-advisory)
- FEDORA-2019-51f1e08207 (vendor-advisory)
- security.netapp.com/advisory/ntap-20190416-0010/