{"answers":{"affected":"7 open source packages ship an affected version, including neutron. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-40085 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-40085 is a medium-severity command injection vulnerability in Debian Debian Linux, published on 31 Aug 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-40085 and fix it if it is affected.\n\nWhat it is: CVE-2021-40085 is a medium-severity command injection vulnerability in Debian Debian Linux, published on 31 Aug 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-40085 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-40085/ (Markdown: https://insights.sbomify.com/CVE-2021-40085/index.md)","id":"CVE-2021-40085","markdown":"https://insights.sbomify.com/CVE-2021-40085/index.md","name":"CVE-2021-40085","record":{"aliases":["DEBIAN-CVE-2021-40085","DLA-3027-1","DSA-4983-1","GHSA-fh73-gjvg-349c","PYSEC-2021-361","RHSA-2021:3481","RHSA-2021:3488","RHSA-2021:3502","RHSA-2021:3503","UBUNTU-CVE-2021-40085"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenStack Neutron","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary commands by injecting malicious values into DHCP options, potentially compromising the network infrastructure.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"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:H/A:N","version":"3.1"},"cwes":[],"description":"An issue was discovered in OpenStack Neutron before 16.4.1, 17.x before 17.2.1, and 18.x before 18.1.1. Authenticated attackers can reconfigure dnsmasq via a crafted extra_dhcp_opts value.","ecosystems":["PyPI","Red Hat:openstack:10::el7","Red Hat:openstack:13::el7","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 vulnerable to authenticated attackers reconfiguring dnsmasq via crafted extra_dhcp_opts value","id":"CVE-2021-40085","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"command_injection","year":"2021"},"n_packages":48,"n_references":6,"next":{"headline":"Information disclosure in n/a","id":"CVE-2021-40086"},"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-361"},{"ecosystem":"PyPI","fixed":["16.4.1"],"introduced":["0"],"last_affected":[],"package":"neutron","purl":null,"source":"GHSA-fh73-gjvg-349c"},{"ecosystem":"PyPI","fixed":["16.4.1"],"introduced":["0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"GHSA-fh73-gjvg-349c"},{"ecosystem":"PyPI","fixed":["17.2.1"],"introduced":["17.0.0"],"last_affected":[],"package":"neutron","purl":null,"source":"GHSA-fh73-gjvg-349c"},{"ecosystem":"PyPI","fixed":["17.2.1"],"introduced":["17.0.0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"GHSA-fh73-gjvg-349c"},{"ecosystem":"PyPI","fixed":["18.1.1"],"introduced":["18.0.0"],"last_affected":[],"package":"neutron","purl":null,"source":"GHSA-fh73-gjvg-349c"},{"ecosystem":"PyPI","fixed":["18.1.1"],"introduced":["18.0.0"],"last_affected":[],"package":"neutron","purl":"pkg:pypi/neutron","source":"GHSA-fh73-gjvg-349c"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron","purl":"pkg:rpm/redhat/openstack-neutron","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-common","purl":"pkg:rpm/redhat/openstack-neutron-common","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-linuxbridge","purl":"pkg:rpm/redhat/openstack-neutron-linuxbridge","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-macvtap-agent","purl":"pkg:rpm/redhat/openstack-neutron-macvtap-agent","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-metering-agent","purl":"pkg:rpm/redhat/openstack-neutron-metering-agent","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-ml2","purl":"pkg:rpm/redhat/openstack-neutron-ml2","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-openvswitch","purl":"pkg:rpm/redhat/openstack-neutron-openvswitch","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-rpc-server","purl":"pkg:rpm/redhat/openstack-neutron-rpc-server","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-sriov-nic-agent","purl":"pkg:rpm/redhat/openstack-neutron-sriov-nic-agent","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"python-neutron","purl":"pkg:rpm/redhat/python-neutron","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:10::el7","fixed":["1:9.4.1-56.el7ost"],"introduced":["0"],"last_affected":[],"package":"python-neutron-tests","purl":"pkg:rpm/redhat/python-neutron-tests","source":"RHSA-2021:3502"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron","purl":"pkg:rpm/redhat/openstack-neutron","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-common","purl":"pkg:rpm/redhat/openstack-neutron-common","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-linuxbridge","purl":"pkg:rpm/redhat/openstack-neutron-linuxbridge","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-macvtap-agent","purl":"pkg:rpm/redhat/openstack-neutron-macvtap-agent","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-metering-agent","purl":"pkg:rpm/redhat/openstack-neutron-metering-agent","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-ml2","purl":"pkg:rpm/redhat/openstack-neutron-ml2","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-openvswitch","purl":"pkg:rpm/redhat/openstack-neutron-openvswitch","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-rpc-server","purl":"pkg:rpm/redhat/openstack-neutron-rpc-server","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-sriov-nic-agent","purl":"pkg:rpm/redhat/openstack-neutron-sriov-nic-agent","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["1:12.1.1-42.1.el7ost"],"introduced":["0"],"last_affected":[],"package":"python-neutron","purl":"pkg:rpm/redhat/python-neutron","source":"RHSA-2021:3503"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron","purl":"pkg:rpm/redhat/openstack-neutron","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-common","purl":"pkg:rpm/redhat/openstack-neutron-common","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-linuxbridge","purl":"pkg:rpm/redhat/openstack-neutron-linuxbridge","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-macvtap-agent","purl":"pkg:rpm/redhat/openstack-neutron-macvtap-agent","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-metering-agent","purl":"pkg:rpm/redhat/openstack-neutron-metering-agent","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-ml2","purl":"pkg:rpm/redhat/openstack-neutron-ml2","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-openvswitch","purl":"pkg:rpm/redhat/openstack-neutron-openvswitch","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-rpc-server","purl":"pkg:rpm/redhat/openstack-neutron-rpc-server","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-sriov-nic-agent","purl":"pkg:rpm/redhat/openstack-neutron-sriov-nic-agent","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["1:15.2.1-1.20210409073447.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-neutron","purl":"pkg:rpm/redhat/python3-neutron","source":"RHSA-2021:3481"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20210608154813.el8ost.3"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron","purl":"pkg:rpm/redhat/openstack-neutron","source":"RHSA-2021:3488"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["1:15.3.5-2.20210608154813.el8ost.3"],"introduced":["0"],"last_affected":[],"package":"openstack-neutron-common","purl":"pkg:rpm/redhat/openstack-neutron-common","source":"RHSA-2021:3488"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2021-40084"},"products":["n/a"],"published":"2021-08-31","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Authenticated attackers can execute arbitrary commands by injecting malicious values into DHCP options, potentially compromising the network infrastructure.","url":"https://insights.sbomify.com/CVE-2021-40085/"}