CVE-2021-21331

Summary

CVECVE-2021-21331
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-03-03 23:15:00 UTC
Updated2021-03-10 19:40:00 UTC
DescriptionThe 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`.

Risk And Classification

Problem Types: NVD-CWE-Other

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Datadoghq Datadog-api-client-java 1.0.0 beta1 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta2 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta3 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta4 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta5 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta6 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta7 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta8 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta1 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta2 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta3 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta4 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta5 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta6 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta7 All All
Application Datadoghq Datadog-api-client-java 1.0.0 beta8 All All

References

ReferenceSourceLinkTags
Release datadog-api-client-1.0.0-beta.9 · DataDog/datadog-api-client-java · GitHub CONFIRM github.com Third Party Advisory
DataDog API Client contains a Local Information Disclosure Vulnerability · Advisory · DataDog/datadog-api-client-java · GitHub CONFIRM github.com Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 980662 Java (maven) Security Update for com.datadoghq:datadog-api-client (GHSA-2cxf-6567-7pp6)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report