CVE-2021-41495
Python packages · CVE-2021-41495
Null Pointer Dereference vulnerability exists in numpy.sort in NumPy < and 1.19 in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays. NOTE: While correct that validation is missing, an error can only occur due to an exhaustion of memory. If the user can exhaust memory, they are already privileged. Further, it should be practically impossible to construct an attack which can target the memory exhaustion to occur at exactly this place
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.241% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:31.971Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:18.098Z | OSV |
| affected | verified | 2026-11-19T12:56:12.426Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:12.426Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/numpy/numpy/issues/19038",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2022.html",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T03:15:28.284Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-5545-2q6w-2gh6",
"aliases": [
"CVE-2021-41495",
"PYSEC-2021-856"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.19"
}
]
}
],
"package": {
"name": "numpy",
"purl": "pkg:pypi/numpy",
"ecosystem": "PyPI"
},
"versions": [
"0.9.6",
"0.9.8",
"1.0",
"1.0.3",
"1.0.4",
"1.0b1",
"1.0b4",
"1.0b5",
"1.0rc1",
"1.0rc2",
"1.0rc3",
"1.1.1",
"1.10.0",
"1.10.1",
"1.10.2",
"1.10.3",
"1.10.4",
"1.11.0",
"1.11.1",
"1.11.2",
"1.11.3",
"1.12.0",
"1.12.1",
"1.13.0",
"1.13.1",
"1.13.3",
"1.14.0",
"1.14.1",
"1.14.2",
"1.14.3",
"1.14.4",
"1.14.5",
"1.14.6",
"1.15.0",
"1.15.1",
"1.15.2",
"1.15.3",
"1.15.4",
"1.16.0",
"1.16.1",
"1.16.2",
"1.16.3",
"1.16.4",
"1.16.5",
"1.16.6",
"1.17.0",
"1.17.1",
"1.17.2",
"1.17.3",
"1.17.4",
"1.17.5",
"1.18.0",
"1.18.1",
"1.18.2",
"1.18.3",
"1.18.4",
"1.18.5",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.4.1",
"1.5.0",
"1.5.1",
"1.6.0",
"1.6.1",
"1.6.2",
"1.7.0",
"1.7.1",
"1.7.2",
"1.8.0",
"1.8.1",
"1.8.2",
"1.9.0",
"1.9.1",
"1.9.2",
"1.9.3"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-5545-2q6w-2gh6/GHSA-5545-2q6w-2gh6.json",
"last_known_affected_version_range": "<= 1.18.5"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41495",
"type": "ADVISORY"
},
{
"url": "https://github.com/numpy/numpy/issues/19038",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-5545-2q6w-2gh6",
"type": "ADVISORY"
},
{
"url": "https://github.com/numpy/numpy",
"type": "PACKAGE"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-856.yaml",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2022.html",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-476"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-12-17T20:15:00Z",
"github_reviewed_at": "2022-06-21T20:10:22Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2021-856",
"aliases": [
"CVE-2021-41495",
"GHSA-5545-2q6w-2gh6"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.19.1"
}
]
}
],
"package": {
"name": "numpy",
"purl": "pkg:pypi/numpy",
"ecosystem": "PyPI"
},
"versions": [
"0.9.6",
"0.9.8",
"1.0",
"1.0.3",
"1.0.4",
"1.0b1",
"1.0b4",
"1.0b5",
"1.0rc1",
"1.0rc2",
"1.0rc3",
"1.1.1",
"1.10.0",
"1.10.1",
"1.10.2",
"1.10.3",
"1.10.4",
"1.11.0",
"1.11.1",
"1.11.2",
"1.11.3",
"1.12.0",
"1.12.1",
"1.13.0",
"1.13.0rc1",
"1.13.0rc2",
"1.13.1",
"1.13.3",
"1.14.0",
"1.14.0rc1",
"1.14.1",
"1.14.2",
"1.14.3",
"1.14.4",
"1.14.5",
"1.14.6",
"1.15.0",
"1.15.0rc1",
"1.15.0rc2",
"1.15.1",
"1.15.2",
"1.15.3",
"1.15.4",
"1.16.0",
"1.16.0rc1",
"1.16.0rc2",
"1.16.1",
"1.16.2",
"1.16.3",
"1.16.4",
"1.16.5",
"1.16.6",
"1.17.0",
"1.17.0rc1",
"1.17.0rc2",
"1.17.1",
"1.17.2",
"1.17.3",
"1.17.4",
"1.17.5",
"1.18.0",
"1.18.0rc1",
"1.18.1",
"1.18.2",
"1.18.3",
"1.18.4",
"1.18.5",
"1.19.0",
"1.19.0rc1",
"1.19.0rc2",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.4.1",
"1.5.0",
"1.5.1",
"1.6.0",
"1.6.1",
"1.6.2",
"1.7.0",
"1.7.1",
"1.7.2",
"1.8.0",
"1.8.1",
"1.8.2",
"1.9.0",
"1.9.1",
"1.9.2",
"1.9.3"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/numpy/PYSEC-2021-856.yaml"
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/numpy/numpy/issues/19038",
"type": "REPORT"
},
{
"url": "https://github.com/advisories/GHSA-5545-2q6w-2gh6",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | numpy | Not a distribution channel | 1.19 | Official record |
| ecosystem-boundary | PyPI / package | numpy | Not a distribution channel | 1.19.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:18.098ZArchived source JSON
Source publication: 2022-02-08T00:00:56.000Z
Source modification: 2023-11-08T04:06:59.212ZDocument fingerprint
add3981fb1450f45551da9727f2a8157f9701a07dd60b19039c20754ff25da7e - OSVConsulted: 2026-11-19T12:52:18.098ZArchived source JSON
Source publication: 2021-12-17T20:15:00.000Z
Source modification: 2023-11-08T04:06:59.212ZDocument fingerprint
add3981fb1450f45551da9727f2a8157f9701a07dd60b19039c20754ff25da7e - CVE ProgramConsulted: 2026-11-19T12:56:12.426ZArchived source JSON
Source publication: 2021-12-17T19:25:19.000Z
Source modification: 2024-08-04T03:15:28.284ZDocument fingerprint
d206b303c5dcd607a3496477067068f8f92b03037da57b5e09c0cebb33ddf520 - FIRST EPSSConsulted: 2026-11-19T16:04:31.971ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3c1d14159dacc460022fe89f94f80269a255e1b71a5e13cea407b288f5187c5b
Official status history
- UNKNOWN → PUBLISHED · · evidence