Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-12852

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-12852
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:51 UTC · Revision 1

Source evidence

CVE-2017-12852

core-osv · Original source

Published 15 Aug 2017, 16:29 UTC

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.

osv:CVE-2017-12852
Complete source record
{
  "id": "2762d553cffb6cb7faba1d132b226c2cda9a6ac32f248ef63bffea3e8f9a724d",
  "url": "https://osv.dev/vulnerability/CVE-2017-12852",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-12852",
    "summary": "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.",
    "evidence": "osv:CVE-2017-12852",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-12852",
      "aliases": [
        "CVE-2017-12852",
        "GHSA-frgw-fgh6-9g52",
        "PYSEC-2017-1"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/numpy/numpy",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "1462df1c20eae44d28e6b665b5d194788f57efc5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.13.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.13.1",
            "pre-removal-numpybook",
            "with_maskna",
            "v0.3.0",
            "v0.2.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12852.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:12.434692673Z",
      "provider": "osv",
      "references": [
        "https://github.com/BT123/testcasesForMyRequest/tree/master/CVE-2017-12852",
        "https://github.com/numpy/numpy/issues/9560#issuecomment-322395292"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-12852",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380138,
  "published_at": "2017-08-15T16:29:00.2+00:00"
}