CyberSecBulletin
CVE-2024-4540NVD status: Deferred

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Check which version of Red Hat Build of Keycloak you run against the affected versions below, and install the vendor's latest release.
  2. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Red HatRed Hat Build of KeycloakNot specified in the recordNot stated
Red HatRed Hat build of Keycloak 22Not specified in the recordNot stated
Red HatRed Hat build of Keycloak 24Not specified in the recordNot stated
Red HatRed Hat Single Sign-On 7Not specified in the recordNot stated
Red HatRed Hat Single Sign-On 7.6 for RHEL 7Not specified in the recordNot stated
Red HatRed Hat Single Sign-On 7.6 for RHEL 8Not specified in the recordNot stated
Red HatRed Hat Single Sign-On 7.6 for RHEL 9Not specified in the recordNot stated
Red HatRHEL-8 based Middleware ContainersNot specified in the recordNot 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

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in Red Hat Build of Keycloak

All Red Hat Build of Keycloak vulnerabilities

Recent Cleartext Storage of Sensitive Information vulnerabilities

Spotted an error? Tell us.