{"answers":{"affected":"It affects 32 products.","exploited":"There is no known exploitation of CVE-2026-54402 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-54402 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-54402 is a critical command injection vulnerability in Ubiquiti Inc Cloud Gateways, published on 2 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-54402 and fix it if it is affected.\n\nWhat it is: CVE-2026-54402 is a critical command injection vulnerability in Ubiquiti Inc Cloud Gateways, published on 2 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-54402 in the wild and no public exploit code.\n\nAffected product: Ubiquiti Inc Cloud Gateways. 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-2026-54402/ (Markdown: https://insights.sbomify.com/CVE-2026-54402/index.md)","id":"CVE-2026-54402","markdown":"https://insights.sbomify.com/CVE-2026-54402/index.md","name":"CVE-2026-54402","record":{"aliases":["GHSA-ghgx-h467-6r25"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"UniFi OS network devices","requires_auth":"low_privilege","summary":"A low-privileged network attacker can execute arbitrary commands on Ubiquiti UniFi OS devices due to improper input validation.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"enterprise_firewall_core_firmware","vendor":"ui"},{"product":"enterprise_fortress_gateway_firmware","vendor":"ui"},{"product":"enterprise_network_video_recorder_core_firmware","vendor":"ui"},{"product":"enterprise_network_video_recorder_firmware","vendor":"ui"},{"product":"unas_2_firmware","vendor":"ui"},{"product":"unas_4_firmware","vendor":"ui"},{"product":"unas_pro_4_firmware","vendor":"ui"},{"product":"unas_pro_8_firmware","vendor":"ui"},{"product":"unas_pro_firmware","vendor":"ui"},{"product":"unifi_cloud_gateway_fiber_firmware","vendor":"ui"},{"product":"unifi_cloud_gateway_industrial_firmware","vendor":"ui"},{"product":"unifi_cloud_gateway_max_firmware","vendor":"ui"},{"product":"unifi_cloud_gateway_ultra_firmware","vendor":"ui"},{"product":"unifi_cloud_key_plus_firmware","vendor":"ui"},{"product":"unifi_cloudkey_enterprise_firmware","vendor":"ui"},{"product":"unifi_cloudkey_firmware","vendor":"ui"},{"product":"unifi_dream_machine_beast_firmware","vendor":"ui"},{"product":"unifi_dream_machine_firmware","vendor":"ui"},{"product":"unifi_dream_machine_pro_firmware","vendor":"ui"},{"product":"unifi_dream_machine_pro_max_firmware","vendor":"ui"},{"product":"unifi_dream_machine_special_edition_firmware","vendor":"ui"},{"product":"unifi_dream_router_5g_max_firmware","vendor":"ui"},{"product":"unifi_dream_router_7_firmware","vendor":"ui"},{"product":"unifi_dream_router_firmware","vendor":"ui"},{"product":"unifi_dream_wall_firmware","vendor":"ui"},{"product":"unifi_express_7_firmware","vendor":"ui"},{"product":"unifi_network_video_recorder_firmware","vendor":"ui"},{"product":"unifi_network_video_recorder_g2_firmware","vendor":"ui"},{"product":"unifi_network_video_recorder_g2_pro_firmware","vendor":"ui"},{"product":"unifi_network_video_recorder_instant_firmware","vendor":"ui"},{"product":"unifi_network_video_recorder_pro_firmware","vendor":"ui"},{"product":"unifi_os_server","vendor":"ui"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"A malicious actor with access to the network and low privileges could exploit an Improper Input Validation vulnerability found in UniFi OS to execute a Command Injection on the host device.","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":"Command injection in Cloud Gateways","id":"CVE-2026-54402","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Path traversal in Cloud Gateways","id":"CVE-2026-54403"},"packages":[],"prev":{"headline":"Server-side request forgery in Cloud Gateways","id":"CVE-2026-54401"},"products":["Cloud Gateways","Cloud Keys","Dream Machines","Dream Routers","Dream Wall","Enterprise Firewall Core","Enterprise Fortress Gateway","Enterprise Video Recorders","Express 7","Network Attached Storage","Network Video Recorders","UniFi OS Server"],"published":"2026-07-02","related":[{"cvss_score":8.8,"headline":"SQL injection in Cloud Gateways","id":"CVE-2026-54404","kev_date_added":null,"published":"2026-07-02"},{"cvss_score":8.6,"headline":"Path traversal in Cloud Gateways","id":"CVE-2026-54403","kev_date_added":null,"published":"2026-07-02"},{"cvss_score":7.7,"headline":"Server-side request forgery in Cloud Gateways","id":"CVE-2026-54401","kev_date_added":null,"published":"2026-07-02"},{"cvss_score":7.5,"headline":"Cross-site request forgery in Cloud Gateways","id":"CVE-2026-55110","kev_date_added":null,"published":"2026-07-02"}],"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":"2026-07-02","vendors":["Ubiquiti Inc"]},"summary":"A low-privileged network attacker can execute arbitrary commands on Ubiquiti UniFi OS devices due to improper input validation.","url":"https://insights.sbomify.com/CVE-2026-54402/"}