{"answers":{"affected":"It affects 10 products.","exploited":"There is no known exploitation of CVE-2023-23912 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-23912 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-23912 is a high-severity code injection vulnerability in Ubiquiti EdgeRouter(s) and USG(s), published on 9 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-23912 and fix it if it is affected.\n\nWhat it is: CVE-2023-23912 is a high-severity code injection vulnerability in Ubiquiti EdgeRouter(s) and USG(s), published on 9 Feb 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-23912 in the wild and no public exploit code.\n\nAffected product: Ubiquiti EdgeRouter(s) and USG(s). No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-23912/ (Markdown: https://insights.sbomify.com/CVE-2023-23912/index.md)","id":"CVE-2023-23912","markdown":"https://insights.sbomify.com/CVE-2023-23912/index.md","name":"CVE-2023-23912","record":{"aliases":["GHSA-f52w-ff63-7f4c"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Ubiquiti EdgeRouter USG","requires_auth":"none","summary":"Attackers on the WAN interface can achieve remote code execution on Ubiquiti EdgeRouters and USGs when DHCPv6 prefix delegation is enabled.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"er-10x_firmware","vendor":"ui"},{"product":"er-12_firmware","vendor":"ui"},{"product":"er-12p_firmware","vendor":"ui"},{"product":"er-4_firmware","vendor":"ui"},{"product":"er-6p_firmware","vendor":"ui"},{"product":"er-8-xg_firmware","vendor":"ui"},{"product":"er-x-sfp_firmware","vendor":"ui"},{"product":"er-x_firmware","vendor":"ui"},{"product":"usg-pro-4_firmware","vendor":"ui"},{"product":"usg_firmware","vendor":"ui"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-75","name":"Failure to Sanitize Special Elements into a Different Plane"}],"description":"A vulnerability, found in EdgeRouters Version 2.0.9-hotfix.5 and earlier and UniFi Security Gateways (USG) Version 4.4.56 and earlier with their DHCPv6 prefix delegation set to dhcpv6-stateless or dhcpv6-stateful, allows a malicious actor directly connected to the WAN interface of an affected device to create a remote code execution vulnerability.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Code injection in Ubiquiti EdgeRouter(s) and USG(s)","id":"CVE-2023-23912","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":0,"n_references":1,"next":{"headline":"rails-ujs vulnerable to DOM Based Cross-site Scripting contenteditable HTML Elements","id":"CVE-2023-23913"},"packages":[],"prev":{"headline":"Security feature bypass in Rocket.Chat","id":"CVE-2023-23911"},"products":["Ubiquiti EdgeRouter(s) and USG(s)"],"published":"2023-02-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-24","vendors":["n/a"]},"summary":"Attackers on the WAN interface can achieve remote code execution on Ubiquiti EdgeRouters and USGs when DHCPv6 prefix delegation is enabled.","url":"https://insights.sbomify.com/CVE-2023-23912/"}