{"id":"UBUNTU-CVE-2018-20406","details":"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.","modified":"2026-04-22T11:52:19.309893Z","published":"2018-12-23T00:00:00Z","related":["USN-4127-1","USN-4127-2","USN-6891-1"],"upstream":["CVE-2018-20406"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-20406"},{"type":"REPORT","url":"https://python-security.readthedocs.io/vuln/pickle-load-dos.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4127-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4127-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-20406"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6891-1"}],"affected":[{"package":{"name":"python3.4","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python3.4@3.4.3-1ubuntu1~14.04.7+esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.3-1ubuntu1~14.04.7+esm2"}]}],"versions":["3.4~b1-0ubuntu3","3.4~b1-4ubuntu4","3.4~b1-4ubuntu6","3.4~b1-5ubuntu2","3.4~b2-1","3.4~b3-1ubuntu1","3.4~rc1-1build1","3.4~rc2-1","3.4~rc3-0ubuntu1","3.4.0-1","3.4.0-2ubuntu1","3.4.0-2ubuntu1.1","3.4.3-1ubuntu1~14.04.1","3.4.3-1ubuntu1~14.04.3","3.4.3-1ubuntu1~14.04.4","3.4.3-1ubuntu1~14.04.5","3.4.3-1ubuntu1~14.04.6","3.4.3-1ubuntu1~14.04.7"],"ecosystem_specific":{"binaries":[{"binary_name":"idle-python3.4","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"libpython3.4","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"libpython3.4-minimal","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"libpython3.4-stdlib","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"libpython3.4-testsuite","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"python3.4","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"python3.4-examples","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"python3.4-minimal","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"},{"binary_name":"python3.4-venv","binary_version":"3.4.3-1ubuntu1~14.04.7+esm2"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20406.json"}},{"package":{"name":"python3.5","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python3.5@3.5.2-2ubuntu0~16.04.4~14.04.1+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"}]}],"versions":["3.5.2-2ubuntu0~16.04.4~14.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"idle-python3.5","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"libpython3.5","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"libpython3.5-minimal","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"libpython3.5-stdlib","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"libpython3.5-testsuite","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"python3.5","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"python3.5-examples","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"python3.5-minimal","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"},{"binary_name":"python3.5-venv","binary_version":"3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20406.json"}},{"package":{"name":"python3.5","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python3.5@3.5.2-2ubuntu0~16.04.8?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.2-2ubuntu0~16.04.8"}]}],"versions":["3.5.0-3","3.5.0-3ubuntu1","3.5.1~rc1-2ubuntu1","3.5.1-1","3.5.1-2","3.5.1-3","3.5.1-5","3.5.1-6ubuntu1","3.5.1-6ubuntu2","3.5.1-9ubuntu1","3.5.1-10","3.5.2-2~16.01","3.5.2-2~16.04","3.5.2-2ubuntu0~16.04.1","3.5.2-2ubuntu0~16.04.2","3.5.2-2ubuntu0~16.04.3","3.5.2-2ubuntu0~16.04.4","3.5.2-2ubuntu0~16.04.5"],"ecosystem_specific":{"binaries":[{"binary_name":"idle-python3.5","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"libpython3.5","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"libpython3.5-minimal","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"libpython3.5-stdlib","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"libpython3.5-testsuite","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"python3.5","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"python3.5-examples","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"python3.5-minimal","binary_version":"3.5.2-2ubuntu0~16.04.8"},{"binary_name":"python3.5-venv","binary_version":"3.5.2-2ubuntu0~16.04.8"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20406.json"}},{"package":{"name":"python3.6","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python3.6@3.6.7-1~18.04?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.7-1~18.04"}]}],"versions":["3.6.3-1ubuntu1","3.6.4~rc1-1","3.6.4~rc1-2","3.6.4-1","3.6.4-2","3.6.4-3build1","3.6.4-4","3.6.5~rc1-1","3.6.5-3","3.6.6-1~18.04"],"ecosystem_specific":{"binaries":[{"binary_name":"idle-python3.6","binary_version":"3.6.7-1~18.04"},{"binary_name":"libpython3.6","binary_version":"3.6.7-1~18.04"},{"binary_name":"libpython3.6-minimal","binary_version":"3.6.7-1~18.04"},{"binary_name":"libpython3.6-stdlib","binary_version":"3.6.7-1~18.04"},{"binary_name":"libpython3.6-testsuite","binary_version":"3.6.7-1~18.04"},{"binary_name":"python3.6","binary_version":"3.6.7-1~18.04"},{"binary_name":"python3.6-examples","binary_version":"3.6.7-1~18.04"},{"binary_name":"python3.6-minimal","binary_version":"3.6.7-1~18.04"},{"binary_name":"python3.6-venv","binary_version":"3.6.7-1~18.04"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20406.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}