CVE Vulnerabilities

CVE-2023-0657

Improper Check for Dropped Privileges

Published: Nov 17, 2024 | Modified: Nov 17, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
3.4 LOW
CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
Ubuntu

A flaw was found in Keycloak. This issue occurs due to improperly enforcing token types when validating signatures locally. This could allow an authenticated attacker to exchange a logout token for an access token and possibly gain access to data outside of enforced permissions.

Weakness

The product attempts to drop privileges but does not check or incorrectly checks to see if the drop succeeded.

Affected Software

Name Vendor Start Version End Version
Red Hat build of Keycloak 22 RedHat rhbk/keycloak-operator-bundle:22.0.10-1 *
Red Hat build of Keycloak 22 RedHat rhbk/keycloak-rhel9:22-13 *
Red Hat build of Keycloak 22 RedHat rhbk/keycloak-rhel9-operator:22-16 *
Red Hat build of Keycloak 22.0.10 RedHat keycloak *

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References