Incorrect Default Permissions Affecting keycloak package, versions <25.0.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Default Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-KEYCLOAK-7277379
  • published19 Jun 2024
  • disclosed18 Jun 2024

Introduced: 18 Jun 2024

CVE-2024-5967  (opens in a new tab)
CWE-276  (opens in a new tab)

How to fix?

Upgrade Wolfi keycloak to version 25.0.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream keycloak package and not the keycloak package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

A vulnerability was found in Keycloak. The LDAP testing endpoint allows changing the Connection URL  independently without re-entering the currently configured LDAP bind credentials. This flaw allows an attacker with admin access (permission manage-realm) to change the LDAP host URL ("Connection URL") to a machine they control. The Keycloak server will connect to the attacker's host and try to authenticate with the configured credentials, thus leaking them to the attacker. As a consequence, an attacker who has compromised the admin console or compromised a user with sufficient privileges can leak domain credentials and attack the domain.

CVSS Scores

version 3.1