{"cve":"CVE-2021-21331","nvd":{"published":"2021-03-03T23:15:11.463","modified":"2026-06-17T03:35:18.800","status":"Modified","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`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":3.3},"cwes":["CWE-378","CWE-379"],"references":["https://github.com/DataDog/datadog-api-client-java/releases/tag/datadog-api-client-1.0.0-beta.9","https://github.com/DataDog/datadog-api-client-java/security/advisories/GHSA-2cxf-6567-7pp6","https://github.com/DataDog/datadog-api-client-java/releases/tag/datadog-api-client-1.0.0-beta.9","https://github.com/DataDog/datadog-api-client-java/security/advisories/GHSA-2cxf-6567-7pp6"],"products":["datadoghq:datadog-api-client-java"],"source":"nvd","synced_at":"2026-10-19T21:15:50.279857260+00:00"},"epss":{"cve":"CVE-2021-21331","score":0.00625,"percentile":0.49991,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2cxf-6567-7pp6","url":"https://osv.dev/vulnerability/GHSA-2cxf-6567-7pp6","summary":"Local Information Disclosure Vulnerability","modified":"2026-07-08T06:28:36.372250801Z","packages":[{"ecosystem":"Maven","name":"com.datadoghq:datadog-api-client","purl":"pkg:maven/com.datadoghq/datadog-api-client","ranges":[">=1.0.0-beta.6 <1.0.0-beta.9"],"fixed":["1.0.0-beta.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}