CVE-2026-24516 DigitalOcean Droplet Agent: Command Injection via Metadata Service Endpoint
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
1 package: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| digitalocean github.com/digitalocean/droplet-agent(Go) | <= 0.0.0-20260107162243-1101ffcb5672; All versions | after 0.0.0-20260107162243-1101ffcb5672 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| digitalocean github.com/digitalocean/droplet-agent(Go) | <= 0.0.0-20260107162243-1101ffcb5672 | No fix listed |
| digitalocean github.com/digitalocean/droplet-agent(Go) | All versions | No fix listed |
References
- github.com
- github.com
- github.com
- github.com exploit
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com vendor-advisory