BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-21331 in Datadoghq Datadog-Api-Client-Java

Low 3.3

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 sen...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.13.3
EPSS0.6%
EPSS percentile45th
FixUnknown

Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Datadoghq Datadog-Api-Client-Java 1.0.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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`.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-21331
BreachSpider IDBS-2021-GLOBAL-081063-L
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Published2021-03-03
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-378: CWE-378

CWE-379: CWE-379

Analysis AI-written, not human-reviewed

The Java client for the Datadog API before version 1.0.0-beta.9 has a local information disclosure vulnerability, exposing sensitive information downloaded via the API to other users on a unix-like system.

An attacker with local access to the system where the vulnerable Java client is running can exploit this vulnerability to access sensitive information downloaded by the Datadog API client.

Questions

What is CVE-2021-21331?

The Java client for the Datadog API before version 1.0.0-beta.9 has a local information disclosure vulnerability, exposing sensitive information downloaded via the API to other users on a unix-like system.

What is the CVSS score for CVE-2021-21331?

CVE-2021-21331 has CVSS 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N. EPSS: 0.6%.

Is CVE-2021-21331 actively exploited?

No confirmed active exploitation of CVE-2021-21331 as of 2026-09-25.

How do I remediate CVE-2021-21331?

Priority: MEDIUM.

What systems are affected by CVE-2021-21331?

CVE-2021-21331 affects Datadoghq Datadog-Api-Client-Java.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Datadoghq","product":"Datadog-Api-Client-Java","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.