Red Hat Build of Keycloak: Cleartext Storage of Sensitive Information
CVE-2024-4540 is a high-severity cleartext storage of sensitive information vulnerability in Red Hat Build of Keycloak from Red Hat, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 0.55% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of Red Hat Build of Keycloak you run against the affected versions below, and install the vendor's latest release.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Red Hat | Red Hat Build of Keycloak | Not specified in the record | Not stated |
| Red Hat | Red Hat build of Keycloak 22 | Not specified in the record | Not stated |
| Red Hat | Red Hat build of Keycloak 24 | Not specified in the record | Not stated |
| Red Hat | Red Hat Single Sign-On 7 | Not specified in the record | Not stated |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | Not specified in the record | Not stated |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | Not specified in the record | Not stated |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | Not specified in the record | Not stated |
| Red Hat | RHEL-8 based Middleware Containers | Not specified in the record | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by CNA (redhat.com).
Official description
A flaw was found in Keycloak in OAuth 2.0 Pushed Authorization Requests (PAR). Client-provided parameters were found to be included in plain text in the KC_RESTART cookie returned by the authorization server's HTTP response to a `request_uri` authorization request, possibly leading to an information disclosure vulnerability.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Cleartext Storage of Sensitive Information
The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.
How developers prevent this class of flaw
- When storing data in the cloud (e.g., S3 buckets, Azure blobs, Google Cloud Storage, etc.), use the provider's controls to encrypt the data at rest.
- In some systems/environments such as cloud, the use of double encryption (at both the software and hardware layer) might be required, and the developer might be solely responsible for both layers, instead of shared responsibility with the administrator of the broader system/environment.
More Cleartext Storage of Sensitive Information vulnerabilities (CWE-312)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Other references
- access.redhat.com/errata/RHSA-2024:3566
- access.redhat.com/errata/RHSA-2024:3567
- access.redhat.com/errata/RHSA-2024:3568
- access.redhat.com/errata/RHSA-2024:3570
- access.redhat.com/errata/RHSA-2024:3572
- access.redhat.com/errata/RHSA-2024:3573
- access.redhat.com/errata/RHSA-2024:3574
- access.redhat.com/errata/RHSA-2024:3575
- access.redhat.com/errata/RHSA-2024:3576
- access.redhat.com/security/cve/CVE-2024-4540
- bugzilla.redhat.com/show_bug.cgi?id=2279303
Other vulnerabilities in Red Hat Build of Keycloak
- 9.1 Critical severity
- 7.7 High severity
- 7.5 High severity
- 7.5 High severity
- 7.4 High severity
- 7.4 High severity
Recent Cleartext Storage of Sensitive Information vulnerabilities
- 8.4 High severity
- 7.5 High severity
- 7.5 High severity
- 7.2 High severity
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.