{"id":"UBUNTU-CVE-2017-12852","details":"The numpy.pad function in Numpy 1.13.1 and older versions is missing input validation. An empty list or ndarray will stick into an infinite loop, which can allow attackers to cause a DoS attack.","modified":"2025-10-24T04:46:27Z","published":"2017-08-15T16:29:00Z","upstream":["CVE-2017-12852"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-12852"},{"type":"REPORT","url":"https://github.com/numpy/numpy/issues/9560#issuecomment-322395292"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-12852"}],"affected":[{"package":{"name":"python-numpy","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python-numpy@1:1.11.0-1ubuntu1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.8.2-1ubuntu2","1:1.8.2-1ubuntu3","1:1.10.4-2ubuntu2","1:1.11.0-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:1.11.0-1ubuntu1","binary_name":"python-numpy"},{"binary_version":"1:1.11.0-1ubuntu1","binary_name":"python3-numpy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-12852.json"}},{"package":{"name":"python-numpy","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-numpy@1:1.13.3-2ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:1.12.1-3.1ubuntu4","1:1.13.3-0ubuntu1","1:1.13.3-1ubuntu1","1:1.13.3-1ubuntu2","1:1.13.3-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1:1.13.3-2ubuntu1","binary_name":"python-numpy"},{"binary_version":"1:1.13.3-2ubuntu1","binary_name":"python3-numpy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-12852.json"}}],"schema_version":"1.7.3","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"}]}