Read the docs
TI-2021-04431 Aliases CVE-2021-21331GHSA-2cxf-6567-7pp6

DataDog API Client contains a Local Information Disclosure Vulnerability

Priority LOW 17CWE-378Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

The Java client for the Datadog API before version 1.0.0-beta.9 has a local information disclosure of sensitive information downloaded via the API using the API Client. The Datadog API is executed on a unix-like system with multiple users. The API is used to download a file containing sensitive information. This sensitive information is exposed locally to other users. This vulnerability exists in the API Client for version 1 and 2. The method `prepareDownloadFilecreates` creates a temporary file with the permissions bits of `-rw-r--r--` on unix-like systems. On unix-like systems, the system temporary directory is shared between users. As such, the contents of the file downloaded via the `downloadFileFromResponse` method will be visible to all other users on the local system. Analysis of the finding determined that the affected code was unused, meaning that the exploitation likelihood is low. The unused code has been removed, effectively mitigating this issue. This issue has been patched in version 1.0.0-beta.9. As a workaround one may specify `java.io.tmpdir` when starting the JVM with the flag `-Djava.io.tmpdir`, specifying a path to a directory with `drw-------` permissions owned by `dd-agent`.

Why it matters now

EPSS 0.00678 52nd percentileScored 2026-11-07
Fix Fixed datadog-api-client-java (DataDog): 1.0.0-beta.9com.datadoghq:datadog-api-client (Maven): 1.0.0-beta.9

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
DataDogdatadog-api-client-javabefore 1.0.0-beta.91.0.0-beta.9Patch availableCNA
—com.datadoghq:datadog-api-client (Maven)1.0.0-beta.6 to before 1.0.0-beta.91.0.0-beta.9Patch availableGHSA-2cxf-6567-7pp6
  • datadog-api-client-java VendorDataDog Affected before 1.0.0-beta.9 Fixed in 1.0.0-beta.9 Patch available CNA
  • com.datadoghq:datadog-api-client (Maven) Vendor— Affected 1.0.0-beta.6 to before 1.0.0-beta.9 Fixed in 1.0.0-beta.9 Patch available GHSA-2cxf-6567-7pp6

CPE configurations NVD · 8

CPEVersionsRoleVendor
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta1:*:*:*:*:*:*1.0.0 beta1VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta2:*:*:*:*:*:*1.0.0 beta2VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta3:*:*:*:*:*:*1.0.0 beta3VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta4:*:*:*:*:*:*1.0.0 beta4VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta5:*:*:*:*:*:*1.0.0 beta5VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta6:*:*:*:*:*:*1.0.0 beta6VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta7:*:*:*:*:*:*1.0.0 beta7VulnerableDatadoghq
cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta8:*:*:*:*:*:*1.0.0 beta8VulnerableDatadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta1:*:*:*:*:*:* Versions 1.0.0 beta1 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta2:*:*:*:*:*:* Versions 1.0.0 beta2 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta3:*:*:*:*:*:* Versions 1.0.0 beta3 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta4:*:*:*:*:*:* Versions 1.0.0 beta4 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta5:*:*:*:*:*:* Versions 1.0.0 beta5 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta6:*:*:*:*:*:* Versions 1.0.0 beta6 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta7:*:*:*:*:*:* Versions 1.0.0 beta7 Vulnerable ·Datadoghq
  • cpe:2.3:a:datadoghq:datadog-api-client-java:1.0.0:beta8:*:*:*:*:*:* Versions 1.0.0 beta8 Vulnerable ·Datadoghq

Remediation

  • Fix · CNA datadog-api-client-java (DataDog) Fixed in 1.0.0-beta.9
  • Fix · GHSA-2cxf-6567-7pp6 com.datadoghq:datadog-api-client (Maven) Fixed in 1.0.0-beta.9 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-21331
  2. 2026-10-03 Alias added: GHSA-2cxf-6567-7pp6
  3. 2026-11-03 EPSS moved to the 50th–90th percentile

References

  • TI-2026-32833 GuardDog: Blind GitHub URL rewrite in remote project scanning causes SSRF and `GH_TOKEN` exfiltration CVSS 3.1HIGH 8.2
  • TI-2022-07587 GuardDog vulnerable to arbitrary file write when scanning a specially-crafted remote PyPI package CVSS 3.1MEDIUM 6.5
  • TI-2026-26107 dd-trace-java: Unsafe deserialization in RMI instrumentation may lead to remote code execution CVSS 4.0CRITICAL 9.3
  • TI-2026-81528 ReDoS in dd-trace URL query string obfuscation CVSS 4.0HIGH 8.7
  • TI-2026-80927 ReDoS in Datadog dd-trace-py URL query string obfuscation CVSS 4.0HIGH 8.7
  • TI-2023-20052 import-in-the-middle allows unsanitized user controlled input in module generation CVSS 3.1CRITICAL 9.8
See all 28 →

Sources