CVE-2025-59390: Apache Druid: Kerberos authenticaton chooses a cryptographically unsecure secret if not configured explicitly.
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-59390?
The severity of CVE-2025-59390 is critical due to the use of a weak fallback secret for Kerberos authentication.
How do I fix CVE-2025-59390?
To fix CVE-2025-59390, explicitly set the `druid.auth.authenticator.kerberos.cookieSignatureSecret` configuration with a secure secret.
Which versions of Apache Druid are affected by CVE-2025-59390?
Apache Druid versions up to and including 34.0.0 are affected by CVE-2025-59390.
What impact does CVE-2025-59390 have on security?
CVE-2025-59390 can lead to unauthorized access due to the use of a non-cryptographically secure random secret.
Is there a workaround for CVE-2025-59390?
A workaround for CVE-2025-59390 is to configure the fallback secret manually to a strong, secure value.