{"answers":{"affected":"3 open source packages ship an affected version, including github.com/digitalocean/droplet-agent.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24516 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-24516 is a high-severity command injection vulnerability in n/a, published on 23 Mar 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-24516 and fix it if it is affected.\n\nWhat it is: CVE-2026-24516 is a high-severity command injection vulnerability in n/a, published on 23 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24516 exists.\n\nAffected packages and fixed versions:\n- github.com/digitalocean/droplet-agent (Go): affected all versions; no fix listed\n- github.com/digitalocean/droplet-agent (Go): affected all versions up to 0.0.0-20260107162243-1101ffcb5672; no fix listed\n- github.com/digitalocean/droplet-agent (Go): affected all versions up to 0.0.0-20260107162243-1101ffcb5672; no fix listed\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-24516/ (Markdown: https://insights.sbomify.com/CVE-2026-24516/index.md)","id":"CVE-2026-24516","markdown":"https://insights.sbomify.com/CVE-2026-24516/index.md","name":"CVE-2026-24516","record":{"aliases":["GHSA-fh3m-562m-w4f6","GO-2026-4854"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"DigitalOcean Droplet Agent","requires_auth":"low_privilege","summary":"An attacker controlling metadata responses can inject arbitrary OS commands executed with root privileges via the Droplet Agent's troubleshooting component.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A command injection vulnerability exists in DigitalOcean Droplet Agent through 1.3.2. The troubleshooting actioner component (internal/troubleshooting/actioner/actioner.go) processes metadata from the metadata service endpoint and executes commands specified in the TroubleshootingAgent.Requesting array without adequate input validation. While the code validates that artifacts exist in the validInvestigationArtifacts map, it fails to sanitize the actual command content after the \"command:\" prefix. This allows an attacker who can control metadata responses to inject and execute arbitrary OS commands with root privileges. The attack is triggered by sending a TCP packet with specific sequence numbers to the SSH port, which causes the agent to fetch metadata from http://169.254.169.254/metadata/v1.json. The vulnerability affects the command execution flow in internal/troubleshooting/actioner/actioner.go (insufficient validation), internal/troubleshooting/command/exec.go (direct exec.CommandContext call), and internal/troubleshooting/command/command.go (command parsing without sanitization). This can lead to complete system compromise, data exfiltration, privilege escalation, and potential lateral movement across cloud infrastructure.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2026-03-22","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-22T20:52:57Z","kind":"github_poc","ref":"https://github.com/poxsky/CVE-2026-24516-DigitalOcean-RCE","stars":1,"title":"Critical Pre-Auth Root RCE (CVSS 10.0) in DigitalOcean Droplet Agent up to v1.3.2 via Command Injection."},{"date":"2026-04-03T05:25:18Z","kind":"github_poc","ref":"https://github.com/poxsky/CVE-2026-24516-DigitalOcean-RCE.","stars":0,"title":"Technical analysis and PoC for CVE-2026-24516: Unauthenticated Root Remote Code Execution in DigitalOcean Droplet Agent (CVSS 10.0)."}],"tier":"weaponised"},"has_fix":true,"headline":"DigitalOcean Droplet Agent: Command Injection via Metadata Service Endpoint","id":"CVE-2026-24516","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Copeland XWEB and XWEB Pro OS Command Injection","id":"CVE-2026-24517"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/digitalocean/droplet-agent","purl":"pkg:golang/github.com/digitalocean/droplet-agent","source":"GO-2026-4854"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.0.0-20260107162243-1101ffcb5672"],"package":"github.com/digitalocean/droplet-agent","purl":null,"source":"GHSA-fh3m-562m-w4f6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.0.0-20260107162243-1101ffcb5672"],"package":"github.com/digitalocean/droplet-agent","purl":"pkg:golang/github.com/digitalocean/droplet-agent","source":"GHSA-fh3m-562m-w4f6"}],"prev":{"headline":"Null dereference in libexpat","id":"CVE-2026-24515"},"products":["n/a"],"published":"2026-03-23","related":[],"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":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-24","vendors":["n/a"]},"summary":"An attacker controlling metadata responses can inject arbitrary OS commands executed with root privileges via the Droplet Agent's troubleshooting component.","url":"https://insights.sbomify.com/CVE-2026-24516/"}