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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | python3.5 | 3.5.3-1+deb9u2 | DLA-2280-1 |
| Debian 8 | python3.4 | 3.4.2-1+deb8u2 | DLA-1663-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | python3.10 | 3.10.12-1~22.04.4 | USN-6891-1 |
| Ubuntu 20.04 LTS | python3.8 | 3.8.10-0ubuntu1~20.04.10 | USN-6891-1 |
| Ubuntu 18.04 LTS | python2.7 | 2.7.15-4ubuntu4~18.04.1 | USN-4127-1 |
| Ubuntu 18.04 LTS | python3.6 | 3.6.7-1~18.04 | USN-4127-1 |
| Ubuntu 16.04 LTS | python2.7 | 2.7.12-1ubuntu0~16.04.8 | USN-4127-1 |
| Ubuntu 16.04 LTS | python3.5 | 3.5.2-2ubuntu0~16.04.8 | USN-4127-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | python3.11 | 3.11.0~rc1-1~22.04.1~esm1 | USN-6891-1 |
| Ubuntu Pro 20.04 LTS | python3.9 | 3.9.5-3ubuntu0~20.04.1+esm2 | USN-6891-1 |
| Ubuntu Pro 18.04 LTS | python3.6 | 3.6.9-1~18.04ubuntu1.13+esm2 | USN-6891-1 |
| Ubuntu Pro 18.04 LTS | python3.7 | 3.7.5-2ubuntu1~18.04.2+esm3 | USN-6891-1 |
| Ubuntu Pro 18.04 LTS | python3.8 | 3.8.0-3ubuntu1~18.04.2+esm2 | USN-6891-1 |
| Ubuntu Pro 16.04 LTS | python3.5 | 3.5.2-2ubuntu0~16.04.13+esm13 | USN-6891-1 |
| Ubuntu Pro 14.04 LTS | python2.7 | 2.7.6-8ubuntu0.6+esm2 | USN-4127-2 |
| Ubuntu Pro 14.04 LTS | python3.4 | 3.4.3-1ubuntu1~14.04.7+esm2 | USN-4127-2 |
| Ubuntu Pro 14.04 LTS | python3.5 | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 | USN-6891-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-python36-python +6 | 3.6.9-2.el6 | RHSA-2019:3725 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | python3 +1 | 3.6.10-3.42.2 | SUSE-SU-2020:0114-1 |
| SLES 15 | python3 +1 | 3.6.5-3.8.1 | SUSE-SU-2020:0114-1, SUSE-SU-2019:0215-1 |
| SLES 12 SP4 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES 12 SP3 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES 12 SP2 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES 12 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES 11 SP4 | MozillaFirefox | 68.2.0-78.51.4 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | MozillaFirefox-branding-SLED | 68-21.9.8 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-atk | 2.26.1-2.8.4 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-cairo | 1.15.10-2.13.4 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-gdk-pixbuf | 2.36.11-2.8.4 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-glib2 | 2.54.3-2.14.7 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-gtk3 | 3.10.9-2.15.3 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-harfbuzz | 1.7.5-2.7.4 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-libffi | 3.2.1.git259-2.3.3 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-libffi-gcc5 | 5.3.1+r233831-14.1 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | firefox-pango | 1.40.14-2.7.4 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | mozilla-nspr | 4.21-29.6.1 | SUSE-SU-2019:14246-1 |
| SLES 11 SP4 | mozilla-nss | 3.45-38.9.3 | SUSE-SU-2019:14246-1 |
| SLES for SAP 12 SP4 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES for SAP 12 SP3 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES for SAP 12 SP2 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SLES for SAP 12 SP1 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-2 |
| SUSE OpenStack Cloud 7 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
| SUSE Enterprise Storage 4 | python3 +1 | 3.4.6-25.21.1 | SUSE-SU-2019:0243-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python36 | 3.6.15-1.1 | openSUSE-SU-2024:11284-1 |
| openSUSE Leap 15.1 | python3 +1 | 3.6.10-lp151.6.7.1 | openSUSE-SU-2020:0086-1 |
| openSUSE Leap 15.0 | python3 +1 | 3.6.5-lp150.2.6.1 | openSUSE-SU-2019:0155-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.8 | python3 | 3.6.8-r0 | — |
| Alpine v3.7 | python3 | 3.6.8-r0 | — |
| Alpine v3.6 | python3 | 3.6.8-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | python +6 | 2.7.16-1.amzn2.0.1 | ALAS2-2019-1230 |
| Amazon Linux 2 | python3 +6 | 3.7.3-1.amzn2.0.1 | ALAS2-2019-1204 |
Advisories 17
- RHSA-2019:3725 Red Hat Security Advisory: rh-python36-python security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- USN-4127-1 python2.7, python3.5, python3.6, python3.7 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- USN-6891-1 python3.5, python3.6, python3.7, python3.8, python3.9, python3.10, python3.11, python3.12 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- USN-4127-2 python2.7, python3.4 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- DLA-1663-1 python3.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2280-1 python3.5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2019:0215-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0086-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0243-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0243-2 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0114-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:0155-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:14246-1 Security update for Mozilla Firefox SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11284-1 python36-3.6.15-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1601 Python: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Nov 9, 2025
- ALAS2-2019-1230 Important: python security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 1, 2019
- ALAS2-2019-1204 Important: python3 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jun 13, 2019
References
- https://bugs.python.org/issue34656
- [debian-lts-announce] 20190207 [SECURITY] [DLA 1663-1] python3.4 security update mailing-list
- https://github.com/python/cpython/commit/a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd
- 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
- https://security.netapp.com/advisory/ntap-20190416-0010/
- USN-4127-2 vendor-advisory
- USN-4127-1 vendor-advisory
- RHSA-2019:3725 vendor-advisory
- openSUSE-SU-2020:0086 vendor-advisory
- [debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update mailing-list