{"answers":{"affected":"7 open source packages ship an affected version, including neutron. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-40797 in the wild and no public exploit code.","fix":"Upgrade neutron to a fixed version for your release line: 16.4.1, 17.2.1 or 18.1.1.","what":"CVE-2021-40797 is a medium-severity denial of service vulnerability in n/a, published on 8 Sep 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-40797 and fix it if it is affected.\n\nWhat it is: CVE-2021-40797 is a medium-severity denial of service vulnerability in n/a, published on 8 Sep 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-40797 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- neutron (PyPI): affected all versions; fixed in 16.4.1, 17.2.1, 18.1.1\n- neutron (PyPI): affected all versions; fixed in 16.4.1\n- neutron (PyPI): affected all versions; fixed in 16.4.1\n- neutron (PyPI): affected from 17.0.0; fixed in 17.2.1\n- neutron (PyPI): affected from 17.0.0; fixed in 17.2.1\n- neutron (PyPI): affected from 18.0.0; fixed in 18.1.1\n- neutron (PyPI): affected from 18.0.0; fixed in 18.1.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-40797/ (Markdown: https://insights.sbomify.com/CVE-2021-40797/index.md)","id":"CVE-2021-40797","markdown":"https://insights.sbomify.com/CVE-2021-40797/index.md","name":"CVE-2021-40797","record":{"aliases":["DEBIAN-CVE-2021-40797","GHSA-cpx3-696p-3cw9","PYSEC-2021-329","RHSA-2022:0990","RHSA-2022:0996","UBUNTU-CVE-2021-40797"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenStack Neutron","requires_auth":"low_privilege","summary":"An authenticated user can cause memory exhaustion and denial of service in OpenStack Neutron API workers by requesting nonexistent controllers.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"neutron","vendor":"openstack"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"}],"description":"An issue was discovered in the routes middleware in OpenStack Neutron before 16.4.1, 17.x before 17.2.1, and 18.x before 18.1.1. By making API requests involving nonexistent controllers, an authenticated user may cause the API worker to consume increasing amounts of memory, resulting in API performance degradation or denial of service.","ecosystems":["PyPI","Red Hat:openstack:16.1::el8","Red Hat:openstack:16.2::el8"],"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":"OpenStack Neutron Denial of Service vulnerability","id":"CVE-2021-40797","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":27,"n_references":3,"next":{"headline":"Privilege escalation in n/a","id":"CVE-2021-40809"},"packages":[{"ecosystem":"PyPI","fixed":["16.4.1","17.2.1","18.1.1"],"introduced":["0","17.0.0","18.0.0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"PYSEC-2021-329"},{"ecosystem":"PyPI","fixed":["16.4.1"],"introduced":["0"],"last_affected":[],"package":"neutron","purl":null,"source":"GHSA-cpx3-696p-3cw9"},{"ecosystem":"PyPI","fixed":["16.4.1"],"introduced":["0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"GHSA-cpx3-696p-3cw9"},{"ecosystem":"PyPI","fixed":["17.2.1"],"introduced":["17.0.0"],"last_affected":[],"package":"neutron","purl":null,"source":"GHSA-cpx3-696p-3cw9"},{"ecosystem":"PyPI","fixed":["17.2.1"],"introduced":["17.0.0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"GHSA-cpx3-696p-3cw9"},{"ecosystem":"PyPI","fixed":["18.1.1"],"introduced":["18.0.0"],"last_affected":[],"package":"neutron","purl":null,"source":"GHSA-cpx3-696p-3cw9"},{"ecosystem":"PyPI","fixed":["18.1.1"],"introduced":["18.0.0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"GHSA-cpx3-696p-3cw9"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron","purl":"pkg:rpm/redhat/openstack-neutron","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-common","purl":"pkg:rpm/redhat/openstack-neutron-common","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-linuxbridge","purl":"pkg:rpm/redhat/openstack-neutron-linuxbridge","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-macvtap-agent","purl":"pkg:rpm/redhat/openstack-neutron-macvtap-agent","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-metering-agent","purl":"pkg:rpm/redhat/openstack-neutron-metering-agent","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-ml2","purl":"pkg:rpm/redhat/openstack-neutron-ml2","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-openvswitch","purl":"pkg:rpm/redhat/openstack-neutron-openvswitch","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-rpc-server","purl":"pkg:rpm/redhat/openstack-neutron-rpc-server","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-sriov-nic-agent","purl":"pkg:rpm/redhat/openstack-neutron-sriov-nic-agent","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20220112133420.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-neutron","purl":"pkg:rpm/redhat/python3-neutron","source":"RHSA-2022:0990"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron","purl":"pkg:rpm/redhat/openstack-neutron","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-common","purl":"pkg:rpm/redhat/openstack-neutron-common","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-linuxbridge","purl":"pkg:rpm/redhat/openstack-neutron-linuxbridge","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-macvtap-agent","purl":"pkg:rpm/redhat/openstack-neutron-macvtap-agent","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-metering-agent","purl":"pkg:rpm/redhat/openstack-neutron-metering-agent","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-ml2","purl":"pkg:rpm/redhat/openstack-neutron-ml2","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-openvswitch","purl":"pkg:rpm/redhat/openstack-neutron-openvswitch","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-rpc-server","purl":"pkg:rpm/redhat/openstack-neutron-rpc-server","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-sriov-nic-agent","purl":"pkg:rpm/redhat/openstack-neutron-sriov-nic-agent","source":"RHSA-2022:0996"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20220113150031.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-neutron","purl":"pkg:rpm/redhat/python3-neutron","source":"RHSA-2022:0996"}],"prev":{"headline":"Adobe Premiere Pro Null Pointer Dereference Application denial-of-service","id":"CVE-2021-40796"},"products":["n/a"],"published":"2021-09-08","related":[{"cvss_score":9.1,"headline":"OpenStack Neutron vulnerable to hardware address impersonation","id":"CVE-2021-38598","kev_date_added":null,"published":"2021-08-23"},{"cvss_score":9.1,"headline":"OpenStack Neutron allows remote attackers to bypass an intended ICMPv6-spoofing protection mechanism","id":"CVE-2015-8914","kev_date_added":null,"published":"2016-06-17"},{"cvss_score":8.2,"headline":"OpenStack Neutron allows remote attackers to bypass an intended DHCP-spoofing protection mechanism","id":"CVE-2016-5362","kev_date_added":null,"published":"2016-06-17"},{"cvss_score":8.2,"headline":"OpenStack Neutron Intended MAC-spoofing protection mechanism bypass","id":"CVE-2016-5363","kev_date_added":null,"published":"2016-06-17"},{"cvss_score":7.6,"headline":"Privilege escalation in n/a","id":"CVE-2014-3632","kev_date_added":null,"published":"2014-10-07"},{"cvss_score":7.1,"headline":"Openstack Neutron has Insufficient Verification of IPv6 addresses","id":"CVE-2021-20267","kev_date_added":null,"published":"2021-05-28"},{"cvss_score":6.5,"headline":"openstack-neutron uncontrolled resource consumption flaw","id":"CVE-2022-3277","kev_date_added":null,"published":"2023-03-06"}],"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":"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":"An authenticated user can cause memory exhaustion and denial of service in OpenStack Neutron API workers by requesting nonexistent controllers.","url":"https://insights.sbomify.com/CVE-2021-40797/"}