CVE-2026-61581 — DataDog datadog-agent
Research article
Datadog Agent Vulnerability Enables Local Code Execution Through Predictable File Storage
| CVE | CVE-2026-61581 |
|---|---|
| Vendor and product | DataDog datadog-agent |
| Published | November 18, 2026 21:05 UTC |
| Research cut-off | November 18, 2026 20:40 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-18); CISA KEV catalog |
Executive summary
The Datadog Agent has a vulnerability related to how it stores helper tools in a predictable directory, which could allow local attackers to execute code with higher privileges [1]. The CVSS 3.1 score for this vulnerability is 7.4, HIGH, assigned by security-advisories@github.com [1]. The affected versions are datadog-agent < 0.66.0 [1], and the reviewed sources do not mention any confirmed exploitation [2]. Updating to datadog-apm-inject 0.66.0, the version the record names as the fix [1].
Key points
- The Datadog Agent is vulnerable due to insecure permissions on a predictable directory used for storing helper tools, which could allow local attackers to execute code with elevated privileges [1].
- The CVSS 3.1 base score is 7.4, HIGH, scored by security-advisories@github.com [1].
- Affected versions are datadog-agent < 0.66.0 [1], and the reviewed sources do not mention any confirmed exploitation [2].
- The issue is resolved in datadog-apm-inject 0.66.0 [1].
- The record names datadog-apm-inject 0.66.0 as the version that fixes the issue [1]. Updating to that version is general defensive guidance.
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last-Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-61581 | DataDog | datadog-agent | CWE-379 | 7.4 HIGH, scored by security-advisories@github.com | 2026-11-18T19:18:07 | 2026-11-18T19:18:07 | Received |
Technical background
The reviewed sources do not provide detailed technical information about the product. The Datadog Agent is a tool used for gathering events and metrics from hosts and sending them to Datadog [1].
Vulnerability description
Before the release of datadog-apm-inject 0.66.0, the Datadog Agent stored helper tools in a directory that could be easily guessed. A local attacker who has shell access to the same machine could alter these tools and execute code with the permissions of the instrumented Java service, provided the system runs on Linux or Kubernetes and SSI is active with at least one Java service being monitored through SSI [1]. Services using dd-java-agent without SSI or non-Java runtimes are not impacted [1].
Root cause analysis
The reviewed sources identify the flaw as CWE-379 (Creation of Temporary File in Directory with Insecure Permissions) [1]. No further details about the root cause are provided.
Technical mechanics
The reviewed sources do not explain the technical steps of the vulnerability in detail. The flaw involves the insecure storage of helper tools in a predictable directory [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the attack requires local access (AV:L), high complexity (AC:H), and no user interaction (UI:N). The attacker must have shell access to the same host [1].
Exploitation scenarios and attack lifecycle
The reviewed sources do not describe specific exploitation scenarios or attack steps for this vulnerability.
Impact analysis
The CVSS vector shows the attack can affect confidentiality (C:H), integrity (I:H), and availability (A:H). The description states that a local unprivileged attacker with shell access could execute code with the permissions of the instrumented Java service [1].
Affected products and versions
| Affected Product | Affected Version | Fixed Version |
|---|---|---|
| DataDog datadog-agent | < 0.66.0 | not listed |
The reviewed sources do not list a fixed version for this vulnerability in the table. The issue is resolved in datadog-apm-inject 0.66.0 [1].
Exploitation and threat intelligence status
The reviewed sources do not report any confirmed exploitation. CVE-2026-61581 is not listed in the CISA KEV catalog as of 2026-11-18 [2].
Indicators of compromise
The reviewed sources do not provide any indicators of compromise.
Detection and exposure assessment
Check installed versions against the affected versions [1]. Other steps are general guidance.
Immediate mitigation
The reviewed sources do not provide specific immediate mitigation steps. General guidance is recommended.
Permanent remediation
The reviewed sources list a fixed version: datadog-apm-inject 0.66.0 [1].
Workarounds and compensating controls
The reviewed sources do not give any workarounds or compensating controls. General guidance is recommended.
Validation and verification
Confirm the installed version after updating to ensure it is no longer affected.
Incident response
If exploitation is suspected, general guidance recommends isolating the affected system and reviewing logs for unusual activity.
Security hardening and prevention
General guidance for this kind of weakness includes securing temporary file storage and limiting access to sensitive directories.
Risk assessment
The CVSS 3.1 base score is 7.4, HIGH, scored by security-advisories@github.com [1]. The reviewed sources do not report exploitation [2].
Conclusion
The Datadog Agent is vulnerable due to insecure permissions on a predictable directory used for storing helper tools, which could allow local attackers to execute code with elevated privileges [1]. The issue is resolved in datadog-apm-inject 0.66.0 [1]. The record names datadog-apm-inject 0.66.0 as the version that fixes the issue [1]. Updating to that version is general defensive guidance.
Remediation checklist
- Update to datadog-apm-inject 0.66.0, the fixed version [1].
- Check installed versions against the affected versions [1].
- Verify that the system is not running any affected versions of the Datadog Agent [1].
- Review and update any related configurations to ensure secure file storage practices are in place.
Evidence gaps
- The root cause is only described as CWE-379, without further technical details.
- The complete version range is not provided, only the affected version is listed.
- The fixed version is listed, but no additional details are provided.
- Exploitation is not confirmed by any source, so the status remains unknown.
- Indicators of compromise are not provided by the reviewed sources.
References
- CVE-2026-61581 record. NIST National Vulnerability Database (NVD), 2026-11-18. https://nvd.nist.gov/vuln/detail/CVE-2026-61581. Accessed 2026-11-18.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-18. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-18.
Summary
The Datadog Agent collects events and metrics from hosts and sends them to Datadog. Prior to datadog-apm-inject 0.66.0, the Datadog Single Step Instrumentation injector stores helper tooling in a predictable host directory. On Linux or Kubernetes systems with SSI enabled and at least one Java service instrumented through SSI, a local unprivileged attacker with shell access to the same host can influence that tooling and execute code with the privileges of the instrumented Java service. Services that use dd-java-agent without SSI and non-Java language runtimes are not affected. This issue is fixed in datadog-apm-inject 0.66.0.
Severity breakdown
High · 7.4
An attacker without an account can exploit this with local access, without any user action, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-379: Creation of Temporary File in Directory with Insecure Permissions
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| DataDog datadog-agent | < 0.66.0 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- DataDog datadog-agent
Frequently asked questions
What is CVE-2026-61581?
The Datadog Agent has a vulnerability related to how it stores helper tools in a predictable directory, which could allow local attackers to execute code with higher privileges. The CVSS 3.1 score for this vulnerability is 7.4, HIGH, assigned by security-advisories@github.com. The affected versions are datadog-agent < 0.66.0, and the reviewed sources do not mention any confirmed exploitation. Weakness type: Creation of Temporary File in Directory with Insecure Permissions (CWE-379).
How severe is CVE-2026-61581?
CVE-2026-61581 has a CVSS 3.1 base score of 7.4 (high), from the CNA (github.com). An attacker without an account can exploit this with local access, without any user action, but only under specific conditions.
Is CVE-2026-61581 being exploited?
Not as far as is known: CVE-2026-61581 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-61581?
DataDog datadog-agent < 0.66.0.
How do I fix CVE-2026-61581?
Update to datadog-apm-inject 0.66.0, the fixed version. Check installed versions against the affected versions. Verify that the system is not running any affected versions of the Datadog Agent.
Timeline & sources
References
Related vulnerabilities & news
- Submariner PSK Flaw Enables MITM Attacks Through Shared Keys
- hypershift-addon RBAC Misconfiguration Enables Unauthorized Cluster Access
- ansible-core Path Traversal Flaw (CVE-2026-130644)
- ansible-core: Path Traversal Vulnerability in Role Installation
- NVIDIA OpenShell for Linux: Cleartext SSH Secret Exposure