CVE-2024-10451: Keycloak Build Process Exposes Sensitive Data
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.
References
- access.redhat.com/errata/RHSA-2024:10175
- access.redhat.com/errata/RHSA-2024:10176
- access.redhat.com/errata/RHSA-2024:10177
- access.redhat.com/errata/RHSA-2024:10178
- access.redhat.com/security/cve/CVE-2024-10451
- bugzilla.redhat.com/show_bug.cgi?id=2322096
- github.com/advisories/GHSA-v7gv-xpgf-6395
- github.com/keycloak/keycloak
- github.com/keycloak/keycloak/commit/198214310eb45b86707f823ccb5a2d65c814b528
- github.com/keycloak/keycloak/security/advisories/GHSA-v7gv-xpgf-6395
- nvd.nist.gov/vuln/detail/CVE-2024-10451
Detect and mitigate CVE-2024-10451 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →