CVE-2026-24516: DigitalOcean Droplet Agent Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-fh3m-562m-w4f6
CVSS 8.8
CWE-77
Published
Advisory Summary

CVE-2026-24516 is a HIGH (CVSS 8.8) command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting DigitalOcean Droplet Agent libraries in the Go ecosystem. The issue involves command injection via metadata service endpoint. Remediation is available in the latest vendor maintenance releases.

CVE-2026-24516 at a Glance

CVE Identifier CVE-2026-24516
GHSA Identifier GHSA-fh3m-562m-w4f6
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product DigitalOcean Droplet Agent
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-24516

To remediate this vulnerability, upgrade all affected DigitalOcean Droplet Agent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/digitalocean/droplet-agent fixed: Latest secure release
Upgrade github.com/digitalocean/droplet-agent to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/digitalocean/droplet-agent

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-24516, inspect your project dependencies for DigitalOcean Droplet Agent:

inspect dependencies for github.com/digitalocean/droplet-agent

Analyze the terminal output to locate any version of DigitalOcean Droplet Agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In DigitalOcean Droplet Agent, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-24516 Affected DigitalOcean Droplet Agent Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/digitalocean/droplet-agent
Go
≤ 0.0.0-20260107162243-1101ffcb5672

References

Frequently Asked Questions

What is CVE-2026-24516?
CVE-2026-24516 is a security vulnerability in DigitalOcean Droplet Agent involving Command Injection via Metadata Service Endpoint under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which DigitalOcean Droplet Agent versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/digitalocean/droplet-agent.
What version fixes CVE-2026-24516?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/digitalocean/droplet-agent affected?
Yes, github.com/digitalocean/droplet-agent is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-24516?
CVE-2026-24516 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-24516?
CVE-2026-24516 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2026-24516?
Run the dependency tree command: 'inspect dependencies for github.com/digitalocean/droplet-agent'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fh3m-562m-w4f6",
  "modified" : "2026-03-25T22:05:11Z",
  "published" : "2026-03-23T18:30:31Z",
  "aliases" : [ "CVE-2026-24516" ],
  "summary" : "DigitalOcean Droplet Agent: Command Injection via Metadata Service Endpoint",
  "details" : "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. \n\nThe 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/digitalocean/droplet-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.0-20260107162243-1101ffcb5672"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24516"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/digitalocean/droplet-agent"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/digitalocean/droplet-agent/blob/main/internal/troubleshooting/actioner/actioner.go"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/digitalocean/droplet-agent/blob/main/internal/troubleshooting/command/command.go"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/digitalocean/droplet-agent/blob/main/internal/troubleshooting/command/exec.go"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/poxsky/CVE-2026-24516-DigitalOcean-RCE"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-25T22:05:11Z",
    "nvd_published_at" : "2026-03-23T17:16:37Z"
  }
}