CVE catalog

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,

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
5.79% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
CpepythonNot reported3.7.1fixed
Cpedebian_linuxNot reportedNot reportedunknown
CpefedoraNot reportedNot reportedunknown
CpefedoraNot reportedNot reportedunknown
CpefedoraNot reportedNot reportedunknown
Ubuntupython3.4pro3.4~b1-0ubuntu3vulnerable
Ubuntupython3.4pro3.4~b1-4ubuntu4vulnerable
Ubuntupython3.4pro3.4~b1-4ubuntu6vulnerable
Ubuntupython3.4pro3.4~b1-5ubuntu2vulnerable
Ubuntupython3.4pro3.4~b2-1vulnerable
Ubuntupython3.4pro3.4~b3-1ubuntu1vulnerable
Ubuntupython3.4pro3.4~rc1-1build1vulnerable
Ubuntupython3.4pro3.4~rc2-1vulnerable
Ubuntupython3.4pro3.4~rc3-0ubuntu1vulnerable
Ubuntupython3.4pro3.4.0-1vulnerable
Ubuntupython3.4pro3.4.0-2ubuntu1vulnerable
Ubuntupython3.4pro3.4.0-2ubuntu1.1vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.1vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.3vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.4vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.5vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.6vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.7vulnerable
Ubuntupython3.4pro3.4.3-1ubuntu1~14.04.7+esm2fixed
Ubuntupython3.5pro3.5.2-2ubuntu0~16.04.4~14.04.1vulnerable
Ubuntupython3.5pro3.5.2-2ubuntu0~16.04.4~14.04.1+esm1fixed
Ubuntupython3.516.043.5.0-3vulnerable
Ubuntupython3.516.043.5.0-3ubuntu1vulnerable
Ubuntupython3.516.043.5.1~rc1-2ubuntu1vulnerable
Ubuntupython3.516.043.5.1-1vulnerable
Ubuntupython3.516.043.5.1-2vulnerable
Ubuntupython3.516.043.5.1-3vulnerable
Ubuntupython3.516.043.5.1-5vulnerable
Ubuntupython3.516.043.5.1-6ubuntu1vulnerable
Ubuntupython3.516.043.5.1-6ubuntu2vulnerable
Ubuntupython3.516.043.5.1-9ubuntu1vulnerable
Ubuntupython3.516.043.5.1-10vulnerable
Ubuntupython3.516.043.5.2-2~16.01vulnerable
Ubuntupython3.516.043.5.2-2~16.04vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.1vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.2vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.3vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.4vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.5vulnerable
Ubuntupython3.516.043.5.2-2ubuntu0~16.04.8fixed
Ubuntupython3.618.043.6.3-1ubuntu1vulnerable
Ubuntupython3.618.043.6.4~rc1-1vulnerable
Ubuntupython3.618.043.6.4~rc1-2vulnerable
Ubuntupython3.618.043.6.4-1vulnerable
Ubuntupython3.618.043.6.4-2vulnerable
Ubuntupython3.618.043.6.4-3build1vulnerable
Ubuntupython3.618.043.6.4-4vulnerable
Ubuntupython3.618.043.6.5~rc1-1vulnerable
Ubuntupython3.618.043.6.5-3vulnerable
Ubuntupython3.618.043.6.6-1~18.04vulnerable
Ubuntupython3.618.043.6.7-1~18.04fixed
Debianpython3.593.5.3-1vulnerable
Debianpython3.593.5.3-1+deb9u1vulnerable
Debianpython3.593.5.3-1+deb9u2fixed
Susepython3linux enterprise module for basesystem 153.6.5-3.8.1fixed
Susepython3-baselinux enterprise module for basesystem 153.6.5-3.8.1fixed
Susepython3-baselinux enterprise module for development tools 153.6.5-3.8.1fixed
Susepython3openstack cloud 73.4.6-25.21.1fixed
Susepython3-baseopenstack cloud 73.4.6-25.21.1fixed
Susepython3linux enterprise desktop 12 sp33.4.6-25.21.1fixed
Susepython3-baselinux enterprise desktop 12 sp33.4.6-25.21.1fixed
Susepython3linux enterprise desktop 12 sp43.4.6-25.21.1fixed
Susepython3-baselinux enterprise desktop 12 sp43.4.6-25.21.1fixed
Susepython3linux enterprise module for web and scripting 123.4.6-25.21.1fixed
Susepython3-baselinux enterprise module for web and scripting 123.4.6-25.21.1fixed
Susepython3linux enterprise server for sap applications 12 sp23.4.6-25.21.1fixed
Susepython3-baselinux enterprise server for sap applications 12 sp23.4.6-25.21.1fixed
Susepython3-baselinux enterprise software development kit 12 sp33.4.6-25.21.1fixed
Susepython3linux enterprise software development kit 12 sp43.4.6-25.21.1fixed
Susepython3-baselinux enterprise software development kit 12 sp43.4.6-25.21.1fixed
Susepython3linux enterprise server 12-ltss3.4.6-25.21.1fixed
Susepython3-baselinux enterprise server 12-ltss3.4.6-25.21.1fixed
Susepython3linux enterprise server 12 sp1-ltss3.4.6-25.21.1fixed
Susepython3-baselinux enterprise server 12 sp1-ltss3.4.6-25.21.1fixed
Susepython3linux enterprise server 12 sp2-ltss3.4.6-25.21.1fixed
Susepython3-baselinux enterprise server 12 sp2-ltss3.4.6-25.21.1fixed
Susepython3linux enterprise server 12 sp2-bcl3.4.6-25.21.1fixed
Susepython3-baselinux enterprise server 12 sp2-bcl3.4.6-25.21.1fixed
Susepython3linux enterprise server 12 sp33.4.6-25.21.1fixed
Susepython3-baselinux enterprise server 12 sp33.4.6-25.21.1fixed
Susepython3linux enterprise server for sap applications 12 sp33.4.6-25.21.1fixed
Susepython3-baselinux enterprise server for sap applications 12 sp33.4.6-25.21.1fixed
Susepython3linux enterprise server 12 sp43.4.6-25.21.1fixed
Susepython3-baselinux enterprise server 12 sp43.4.6-25.21.1fixed
Susepython3linux enterprise server for sap applications 12 sp43.4.6-25.21.1fixed
Susepython3-baselinux enterprise server for sap applications 12 sp43.4.6-25.21.1fixed
Susepython3enterprise storage 43.4.6-25.21.1fixed
Susepython3-baseenterprise storage 43.4.6-25.21.1fixed
Susepython3linux enterprise server for sap applications 12 sp13.4.6-25.21.1fixed
Susepython3-baselinux enterprise server for sap applications 12 sp13.4.6-25.21.1fixed
Opensusepython3leap 15.03.6.5-lp150.2.6.1fixed
Opensusepython3-baseleap 15.03.6.5-lp150.2.6.1fixed
Alpinepython33.63.6.8-r0fixed
Alpinepython33.73.6.8-r0fixed
Alpinepython33.83.6.8-r0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
CpepythoncpeNot reported3.7.1Not reportedNVD-CVE-2018-20406Not reported
Ubuntupython3.4debpro3.4.3-1ubuntu1~14.04.7+esm2Not reportedUBUNTU-CVE-2018-20406Not reported
Ubuntupython3.5debpro3.5.2-2ubuntu0~16.04.4~14.04.1+esm1Not reportedUBUNTU-CVE-2018-20406Not reported
Ubuntupython3.5deb16.043.5.2-2ubuntu0~16.04.8Not reportedUBUNTU-CVE-2018-20406Not reported
Ubuntupython3.6deb18.043.6.7-1~18.04Not reportedUBUNTU-CVE-2018-20406Not reported
Debianpython3.5deb93.5.3-1+deb9u2Not reportedDLA-2280-1Not reported
Susepython3rpmlinux enterprise module for basesystem 153.6.5-3.8.1Not reportedSUSE-SU-2019:0215-1Not reported
Susepython3-baserpmlinux enterprise module for basesystem 153.6.5-3.8.1Not reportedSUSE-SU-2019:0215-1Not reported
Susepython3-baserpmlinux enterprise module for development tools 153.6.5-3.8.1Not reportedSUSE-SU-2019:0215-1Not reported
Susepython3rpmopenstack cloud 73.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmopenstack cloud 73.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise desktop 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise desktop 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise desktop 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise desktop 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise module for web and scripting 123.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise module for web and scripting 123.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server for sap applications 12 sp23.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server for sap applications 12 sp23.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise software development kit 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise software development kit 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise software development kit 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server 12-ltss3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server 12-ltss3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server 12 sp1-ltss3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server 12 sp1-ltss3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server 12 sp2-ltss3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server 12 sp2-ltss3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server 12 sp2-bcl3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server 12 sp2-bcl3.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server for sap applications 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server for sap applications 12 sp33.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server for sap applications 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmlinux enterprise server for sap applications 12 sp43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmenterprise storage 43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3-baserpmenterprise storage 43.4.6-25.21.1Not reportedSUSE-SU-2019:0243-1Not reported
Susepython3rpmlinux enterprise server for sap applications 12 sp13.4.6-25.21.1Not reportedSUSE-SU-2019:0243-2Not reported
Susepython3-baserpmlinux enterprise server for sap applications 12 sp13.4.6-25.21.1Not reportedSUSE-SU-2019:0243-2Not reported
Opensusepython3rpmleap 15.03.6.5-lp150.2.6.1Not reportedOPENSUSE-SU-2019:0155-1Not reported
Opensusepython3-baserpmleap 15.03.6.5-lp150.2.6.1Not reportedOPENSUSE-SU-2019:0155-1Not reported
Alpinepython3apk3.63.6.8-r0Not reportedALPINE-CVE-2018-20406Not reported
Alpinepython3apk3.73.6.8-r0Not reportedALPINE-CVE-2018-20406Not reported
Alpinepython3apk3.83.6.8-r0Not reportedALPINE-CVE-2018-20406Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

Observed:

References