Skip to content
OpenAdvisories
Unscored CVE-2018-20406 EUVD-2018-12964GHSA-p5h6-p5x2-5qxf

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…

Published Dec 23, 2018 · Updated Oct 15, 2026 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 9 python3.5 3.5.3-1+deb9u2 DLA-2280-1
Debian 8 python3.4 3.4.2-1+deb8u2 DLA-1663-1
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
RHEL 3 rh-python36-python +6 3.6.9-2.el6 RHSA-2019:3725
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

References