{"answers":{"affected":"3 open source packages ship an affected version, including numpy. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41495 in the wild and no public exploit code.","fix":"Upgrade numpy to a fixed version for your release line: 1.19 or 1.19.1.","what":"CVE-2021-41495 is a medium-severity vulnerability in n/a, published on 17 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-41495 and fix it if it is affected.\n\nWhat it is: CVE-2021-41495 is a medium-severity vulnerability in n/a, published on 17 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-41495 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- numpy (PyPI): affected all versions; fixed in 1.19\n- numpy (PyPI): affected all versions; fixed in 1.19\n- numpy (PyPI): affected all versions; fixed in 1.19.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41495/ (Markdown: https://insights.sbomify.com/CVE-2021-41495/index.md)","id":"CVE-2021-41495","markdown":"https://insights.sbomify.com/CVE-2021-41495/index.md","name":"CVE-2021-41495","record":{"aliases":["AZL-7045","CLSA-2026-1789474848","DEBIAN-CVE-2021-41495","ECHO-02e5-0070-f939","GHSA-5545-2q6w-2gh6","MINI-q54x-3m42-wwgx","PYSEC-2021-856","RHSA-2022:8852","RHSA-2022:8861","SUSE-SU-2022:2645-1","SUSE-SU-2022:2646-1","SUSE-SU-2022:2793-1","SUSE-SU-2025:0424-1","UBUNTU-CVE-2021-41495"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"NumPy Python library","requires_auth":"low_privilege","summary":"A null pointer dereference in NumPy's sort function allows denial of service via memory exhaustion, though exploitation is practically difficult.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"numpy","vendor":"numpy"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"description":"Null Pointer Dereference vulnerability exists in numpy.sort in NumPy \u0026lt 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","ecosystems":["PyPI","Red Hat:openstack:16.1::el8","Red Hat:openstack:16.2::el8","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for HPC 12","SUSE:Linux Enterprise Module for HPC 15 SP4","SUSE:Linux Enterprise Module for HPC 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5","openSUSE:Leap 15.4","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"NumPy NULL Pointer Dereference","id":"CVE-2021-41495","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"null_dereference","year":"2021"},"n_packages":26,"n_references":2,"next":{"headline":"Buffer Copy without Checking Size of Input in NumPy","id":"CVE-2021-41496"},"packages":[{"ecosystem":"PyPI","fixed":["1.19"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":null,"source":"GHSA-5545-2q6w-2gh6"},{"ecosystem":"PyPI","fixed":["1.19"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:pypi/numpy","source":"GHSA-5545-2q6w-2gh6"},{"ecosystem":"PyPI","fixed":["1.19.1"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:pypi/numpy","source":"PYSEC-2021-856"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:rpm/redhat/numpy","source":"RHSA-2022:8861"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"numpy-debugsource","purl":"pkg:rpm/redhat/numpy-debugsource","source":"RHSA-2022:8861"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-numpy","purl":"pkg:rpm/redhat/python3-numpy","source":"RHSA-2022:8861"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-numpy-debuginfo","purl":"pkg:rpm/redhat/python3-numpy-debuginfo","source":"RHSA-2022:8861"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-numpy-f2py","purl":"pkg:rpm/redhat/python3-numpy-f2py","source":"RHSA-2022:8861"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:rpm/redhat/numpy","source":"RHSA-2022:8852"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"numpy-debugsource","purl":"pkg:rpm/redhat/numpy-debugsource","source":"RHSA-2022:8852"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-numpy","purl":"pkg:rpm/redhat/python3-numpy","source":"RHSA-2022:8852"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-numpy-debuginfo","purl":"pkg:rpm/redhat/python3-numpy-debuginfo","source":"RHSA-2022:8852"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:1.17.0-11.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-numpy-f2py","purl":"pkg:rpm/redhat/python3-numpy-f2py","source":"RHSA-2022:8852"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["1.17.3-150400.23.3.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2022:2646-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["1.17.3-150400.31.1"],"introduced":["0"],"last_affected":[],"package":"python3-numpy","purl":"pkg:rpm/suse/python3-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:0424-1"},{"ecosystem":"SUSE:Linux Enterprise Module for HPC 12","fixed":["1.13.3-4.15.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_13_3-gnu-hpc","purl":"pkg:rpm/suse/python-numpy_1_13_3-gnu-hpc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20HPC%2012","source":"SUSE-SU-2022:2793-1"},{"ecosystem":"SUSE:Linux Enterprise Module for HPC 15 SP4","fixed":["1.17.3-150400.23.3.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_17_3-gnu-hpc","purl":"pkg:rpm/suse/python-numpy_1_17_3-gnu-hpc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20HPC%2015%20SP4","source":"SUSE-SU-2022:2646-1"},{"ecosystem":"SUSE:Linux Enterprise Module for HPC 15 SP6","fixed":["1.17.3-150400.31.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_17_3-gnu-hpc","purl":"pkg:rpm/suse/python-numpy_1_17_3-gnu-hpc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20HPC%2015%20SP6","source":"SUSE-SU-2025:0424-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["1.17.3-150400.31.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_17_3-gnu-hpc","purl":"pkg:rpm/suse/python-numpy_1_17_3-gnu-hpc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2025:0424-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["1.8.0-5.14.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2022:2645-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["1.8.0-5.14.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2022:2645-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["1.8.0-5.14.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2022:2645-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["1.17.3-150400.23.3.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/opensuse/python-numpy\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:2646-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["1.17.3-150400.23.3.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_17_3-gnu-hpc","purl":"pkg:rpm/opensuse/python-numpy_1_17_3-gnu-hpc\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:2646-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.17.3-150400.31.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_17_3-gnu-hpc","purl":"pkg:rpm/opensuse/python-numpy_1_17_3-gnu-hpc\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0424-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["1.17.3-150400.31.1"],"introduced":["0"],"last_affected":[],"package":"python3-numpy","purl":"pkg:rpm/opensuse/python3-numpy\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0424-1"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2021-41492"},"products":["n/a"],"published":"2021-12-17","related":[{"cvss_score":7.5,"headline":"Numpy missing input validation","id":"CVE-2017-12852","kev_date_added":null,"published":"2017-08-15"},{"cvss_score":5.5,"headline":"Buffer Copy without Checking Size of Input in NumPy","id":"CVE-2021-41496","kev_date_added":null,"published":"2021-12-17"},{"cvss_score":5.5,"headline":"Arbitrary file write in NumPy","id":"CVE-2014-1858","kev_date_added":null,"published":"2018-01-08"},{"cvss_score":5.3,"headline":"NumPy Buffer Overflow (Disputed)","id":"CVE-2021-33430","kev_date_added":null,"published":"2021-12-17"},{"cvss_score":5.3,"headline":"Incorrect Comparison in NumPy","id":"CVE-2021-34141","kev_date_added":null,"published":"2021-12-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"A null pointer dereference in NumPy's sort function allows denial of service via memory exhaustion, though exploitation is practically difficult.","url":"https://insights.sbomify.com/CVE-2021-41495/"}