Keycloak Information Disclosure Vulnerability in Build Process
CVE-2024-10451 Published on November 25, 2024
Org.keycloak:keycloak-quarkus-server: sensitive data exposure in keycloak build process
A flaw was found in Keycloak. This issue occurs because sensitive runtime values, such as passwords, may be captured during the Keycloak build process and embedded as default values in bytecode, leading to unintended information disclosure. In Keycloak 26, sensitive data specified directly in environment variables during the build process is also stored as a default values, making it accessible during runtime. Indirect usage of environment variables for SPI options and Quarkus properties is also vulnerable due to unconditional expansion by PropertyMapper logic, capturing sensitive data as default values in all Keycloak versions up to 26.0.2.
Vulnerability Analysis
CVE-2024-10451 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.
Timeline
Reported to Red Hat.
Made public. 24 days later.
Weakness Type
Use of Hard-coded Credentials
The software contains hard-coded credentials, such as a password or cryptographic key, which it uses for its own inbound authentication, outbound communication to external components, or encryption of internal data.
Products Associated with CVE-2024-10451
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat build of Keycloak 24:- Version 24.0.9-1 and below * is unaffected.
- Version 24-18 and below * is unaffected.
- Version 24-18 and below * is unaffected.
- Version 26.0.6-2 and below * is unaffected.
- Version 26.0-5 and below * is unaffected.
- Version 26.0-6 and below * is unaffected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2024-10451
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.keycloak:keycloak-quarkus-server | < 24.0.9 | 24.0.9 |
| maven | org.keycloak:keycloak-quarkus-server | >= 25.0.0, < 26.0.6 | 26.0.6 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.