python: Integer overflow in Modules/_pickle.c allows for memory exhaustion if serializing gigabytes of data
Published Dec 23, 2018
7.5
HIGHCVSS 3.0
EPSS 5.79%
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.
Affected products
No data.
Configuration 2
- 8.0
Configuration 3
- 28
- 29
- 30
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-python36-python-0:3.6.9-2.el6
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS
rh-python36-python-0:3.6.9-2.el7
Fixed · RHSA-2019:3725
Red Hat Enterprise Linux 5
python
Not affected
Red Hat Enterprise Linux 6
python
Not affected
Red Hat Enterprise Linux 7
python
Not affected
Red Hat Enterprise Linux 8
python3
Not affected
Red Hat Enterprise Linux 8
python36
Not affected
Red Hat Enterprise Linux 8
python36:3.6/python36
Not affected
Red Hat Software Collections
rh-python35-python
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-python36-python-0:3.6.9-2.el6 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-python36-python-0:3.6.9-2.el7 | Fixed | RHSA-2019:3725 |
| Red Hat Enterprise Linux 5 | python | Not affected | n/a |
| Red Hat Enterprise Linux 6 | python | Not affected | n/a |
| Red Hat Enterprise Linux 7 | python | Not affected | n/a |
| Red Hat Enterprise Linux 8 | python3 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | python36 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | python36:3.6/python36 | Not affected | n/a |
| Red Hat Software Collections | rh-python35-python | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of python as shipped with Red Hat Enterprise Linux 5, 6 and 7.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (21 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 5.79% (0.05789) | 92.88th | v5 (v2026.06.15) |
| Jun 15, 2026 | 5.79% (0.05789) | 92.11th | v5 (v2026.06.15) |
| Jun 9, 2026 | 2.39% (0.02390) | 85.33th | v4 (v2025.03.14) |
| Nov 21, 2025 | 1.26% (0.01265) | 78.83th | v4 (v2025.03.14) |
| Nov 18, 2025 | 6.68% (0.06682) | 90.31th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.37% (0.01374) | 78.48th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.76% (0.04757) | 82.00th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.37% (0.01374) | 78.94th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.66% (0.00655) | 80.18th | v3 (v2023.03.01) |
| Apr 17, 2024 | 0.66% (0.00655) | 79.22th | v3 (v2023.03.01) |
| Dec 17, 2023 | 0.66% (0.00655) | 77.21th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.78% (0.00780) | 79.29th | v3 (v2023.03.01) |
| Apr 18, 2023 | 0.92% (0.00920) | 80.60th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.91% (0.00914) | 80.40th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.28% (0.03281) | 66.54th | v1 |
| Jan 6, 2022 | 3.28% (0.03281) | 66.22th | v1 |
| Sep 1, 2021 | 3.28% (0.03281) | 81.60th | v1 |
| Apr 14, 2021 | 3.28% (0.03281) | 0.00th | v1 |
References (20)
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html vendor-advisoryx_refsource_SUSE
- https://access.redhat.com/errata/RHSA-2019:3725 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-20406 Vendor Advisory
- https://bugs.python.org/issue34656 x_refsource_MISCExploitIssue TrackingPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1664509 Issue Tracking
- https://github.com/python/cpython/commit/a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd x_refsource_MISCPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html mailing-listx_refsource_MLIST
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46PVWY5LFP4BRPG3BVQ5QEEFYBVEXHCK/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEZ5IQT7OF7Q2NCGIVABOWYGKO7YU3NJ/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D3LXPABKVLFYUHRYJPM3CSS5MS6FXKS7/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ICBEGRHIPHWPG2VGYS6R4EVKVUUF4AQW/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JSKPGPZQNTAULHW4UH63KGOOUIDE4RRB/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TR6GCO3WTV4D5L23WTCBF275VE6BVNI3/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2018-20406
- https://python-security.readthedocs.io/vuln/pickle-load-dos.html
- https://security.netapp.com/advisory/ntap-20190416-0010/ x_refsource_CONFIRM
- https://usn.ubuntu.com/4127-1/ vendor-advisoryx_refsource_UBUNTU
- https://usn.ubuntu.com/4127-2/ vendor-advisoryx_refsource_UBUNTU
- https://www.cve.org/CVERecord?id=CVE-2018-20406
Change history (0)
No recorded changes yet.