Security mailing lists by PureSourceCode

CVE-2021-41495

MEDIUM 5.3CVSS 3.1

NumPy NULL Pointer Dereference

Null Pointer Dereference vulnerability exists in numpy.sort in NumPy &lt 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

Published
17 Dec 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-476
Also known as
GHSA-5545-2q6w-2gh6PYSEC-2021-856
Sources
NVDJSONOSV GHSA-5545-2q6w-2gh6JSONOSV PYSEC-2021-856JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 3.5 AV:N/AC:M/Au:S/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD numpy numpy
cpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:*
<= 1.19.0
OSV PyPI numpy < 1.19 1.19
OSV PyPI numpy < 1.19.1 1.19.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Dec 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Dec 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Feb 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.