Vulnerabilities in pkg:maven/org.apache.druid/druid

PACKAGE
Advisory Identifier: GHSA-w88f-4875-99c8
Advisory Summary

CVE-2025-59390 is a CRITICAL (CVSS 9.8) apache druid’s kerberos authenticator uses vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Druid libraries in the Maven ecosystem. The issue involves apache druid’s kerberos authenticator uses a weak fallback secret. Remediation is available by upgrading affected packages to version 35.0.0.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.druid/druid

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.druid/druid. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-w88f-4875-99c8 CVE-2025-59390 CRITICAL Apache Druid’s Kerberos authenticator uses a weak fallback secret
GHSA-2xcr-p767-f3rv CVE-2025-27888 MODERATE Apache Druid vulnerable to Server-Side Request Forgery, Cross-site Scripting, Open Redirect
GHSA-jh66-3545-vpm7 CVE-2024-45537 LOW Apache Druid: Users can provide MySQL JDBC properties not on allow list
GHSA-8rmv-98m4-g5c6 CVE-2021-44791 MODERATE Apache Druid before 0.23.0 vulnerable to reflected XSS via unescaped URL parameters
GHSA-pgq7-jcj5-xx6h CVE-2022-28889 MODERATE Apache Druid before 0.23.0 vulnerable to clickjacking
GHSA-jj4f-p7vv-j4v9 CVE-2021-26919 HIGH Arbitrary code execution in Apache Druid
GHSA-wrqf-rrrw-w3mg CVE-2021-25646 HIGH Code injection in Apache Druid
GHSA-qh2g-7h5p-mxf4 CVE-2020-1958 MODERATE Credentials bypass in Apache Druid

CVE-2025-59390 at a Glance

CVE Identifier CVE-2025-59390
GHSA Identifier GHSA-w88f-4875-99c8
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Druid
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-59390

To remediate this vulnerability, upgrade all affected Druid dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.druid:druid fixed: 35.0.0
<dependency>
    <groupId>org.apache.druid</groupId>
    <artifactId>druid</artifactId>
    <version>35.0.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.druid

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-59390, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.druid

Analyze the terminal output to locate any version of Druid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 35.0.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.druid command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Druid, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Apache Druid’s Kerberos authenticator uses a weak fallback secret when the `druid.auth.authenticator.kerberos.cookieSignatureSecret` configuration is not explicitly set. In this case, the secret is generated using `ThreadLocalRandom`, which is not a crypto-graphically secure random number generator. This may allow an attacker to predict or brute force the secret used to sign authentication cookies, potentially enabling token forgery or authentication bypass. Additionally, each process generates its own fallback secret, resulting in inconsistent secrets across nodes. This causes authentication failures in distributed or multi-broker deployments, effectively leading to a incorrectly configured clusters. Users are advised to configure a strong `druid.auth.authenticator.kerberos.cookieSignatureSecret` This issue affects Apache Druid: through 34.0.0. Users are recommended to upgrade to version 35.0.0, which fixes the issue making it mandatory to set `druid.auth.authenticator.kerberos.cookieSignatureSecret` when using the Kerberos authenticator. Services will fail to come up if the secret is not set.

CVE-2025-59390 Affected Druid Versions

1 component(s)
Fixed Versions:
35.0.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.druid:druid
Maven
< 35.0.0
35.0.0

References

Frequently Asked Questions

What is CVE-2025-59390?
CVE-2025-59390 is a security vulnerability in Druid involving Apache Druid’s Kerberos authenticator uses a weak fallback secret under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Druid versions are affected?
Affected versions include releases prior to 35.0.0 across affected packages: org.apache.druid:druid.
What version fixes CVE-2025-59390?
Upgrading to 35.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is druid affected?
Yes, org.apache.druid:druid is affected in releases prior to 35.0.0. Upgrade your dependency to 35.0.0 or later.
What is the CVSS score of CVE-2025-59390?
CVE-2025-59390 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-59390?
CVE-2025-59390 is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.).
How can I check Maven dependencies for CVE-2025-59390?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.druid'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w88f-4875-99c8",
  "modified" : "2025-11-26T23:19:18Z",
  "published" : "2025-11-26T09:31:21Z",
  "aliases" : [ "CVE-2025-59390" ],
  "summary" : "Apache Druid’s Kerberos authenticator uses a weak fallback secret",
  "details" : "Apache Druid’s Kerberos authenticator uses a weak fallback secret when the `druid.auth.authenticator.kerberos.cookieSignatureSecret` configuration is not explicitly set. In this case, the secret is generated using `ThreadLocalRandom`, which is not a crypto-graphically secure random number generator. This  may allow an attacker to predict or brute force the secret used to sign authentication cookies, potentially enabling token forgery or authentication bypass. Additionally, each process generates its own fallback secret, resulting in inconsistent secrets across nodes. This causes authentication failures in distributed or multi-broker deployments, effectively leading to a incorrectly configured clusters. Users are advised to configure a strong `druid.auth.authenticator.kerberos.cookieSignatureSecret`\n\nThis issue affects Apache Druid: through 34.0.0.\n\nUsers are recommended to upgrade to version 35.0.0, which fixes the issue making it mandatory to set `druid.auth.authenticator.kerberos.cookieSignatureSecret` when using the Kerberos authenticator. Services will fail to come up if the secret is not set.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.druid:druid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "35.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59390"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/druid/pull/18368"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/druid"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/jwjltllnntgj1sb9wzsjmvwm9f8rlhg8"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/11/26/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-338" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-26T23:19:18Z",
    "nvd_published_at" : "2025-11-26T09:15:46Z"
  }
}