{"answers":{"affected":"6 open source packages ship an affected version, including org.keycloak:keycloak-ldap-federation.","exploited":"There is no known exploitation of CVE-2024-5967 in the wild and no public exploit code.","fix":"Upgrade org.keycloak:keycloak-ldap-federation to a fixed version for your release line: 22.0.12, 24.0.6 or 25.0.1.","what":"CVE-2024-5967 is a low-severity vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 18 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-5967 and fix it if it is affected.\n\nWhat it is: CVE-2024-5967 is a low-severity vulnerability in Red Hat RHEL-8 based Middleware Containers, published on 18 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-5967 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.keycloak:keycloak-ldap-federation (Maven): affected all versions; fixed in 22.0.12\n- org.keycloak:keycloak-ldap-federation (Maven): affected all versions; fixed in 22.0.12\n- org.keycloak:keycloak-ldap-federation (Maven): affected from 23.0.0; fixed in 24.0.6\n- org.keycloak:keycloak-ldap-federation (Maven): affected from 23.0.0; fixed in 24.0.6\n- org.keycloak:keycloak-ldap-federation (Maven): affected from 25.0.0; fixed in 25.0.1\n- org.keycloak:keycloak-ldap-federation (Maven): affected from 25.0.0; fixed in 25.0.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-5967/ (Markdown: https://insights.sbomify.com/CVE-2024-5967/index.md)","id":"CVE-2024-5967","markdown":"https://insights.sbomify.com/CVE-2024-5967/index.md","name":"CVE-2024-5967","record":{"aliases":["GHSA-c25h-c27q-5qpv"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Keycloak identity server","requires_auth":"high_privilege","summary":"An admin can leak LDAP bind credentials by changing the connection URL to an attacker-controlled host, exposing domain credentials.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":2.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Keycloak: leak of configured ldap bind credentials through the keycloak admin console","id":"CVE-2024-5967","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":6,"n_references":9,"next":{"headline":"Photo Gallery by 10Web \u003c= 1.8.27 - Admin+ Stored XSS","id":"CVE-2024-5968"},"packages":[{"ecosystem":"Maven","fixed":["22.0.12"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-ldap-federation","purl":null,"source":"GHSA-c25h-c27q-5qpv"},{"ecosystem":"Maven","fixed":["22.0.12"],"introduced":["0"],"last_affected":[],"package":"org.keycloak:keycloak-ldap-federation","purl":"pkg:maven/org.keycloak/keycloak-ldap-federation","source":"GHSA-c25h-c27q-5qpv"},{"ecosystem":"Maven","fixed":["24.0.6"],"introduced":["23.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-ldap-federation","purl":null,"source":"GHSA-c25h-c27q-5qpv"},{"ecosystem":"Maven","fixed":["24.0.6"],"introduced":["23.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-ldap-federation","purl":"pkg:maven/org.keycloak/keycloak-ldap-federation","source":"GHSA-c25h-c27q-5qpv"},{"ecosystem":"Maven","fixed":["25.0.1"],"introduced":["25.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-ldap-federation","purl":null,"source":"GHSA-c25h-c27q-5qpv"},{"ecosystem":"Maven","fixed":["25.0.1"],"introduced":["25.0.0"],"last_affected":[],"package":"org.keycloak:keycloak-ldap-federation","purl":"pkg:maven/org.keycloak/keycloak-ldap-federation","source":"GHSA-c25h-c27q-5qpv"}],"prev":{"headline":"Grey Opaque \u003c= 2.0.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Download-Button Shortcode","id":"CVE-2024-5966"},"products":["RHEL-8 based Middleware Containers","Red Hat Build of Keycloak","Red Hat Single Sign-On 7","Red Hat Single Sign-On 7.6 for RHEL 7","Red Hat Single Sign-On 7.6 for RHEL 8","Red Hat Single Sign-On 7.6 for RHEL 9","Red Hat build of Keycloak 22"],"published":"2024-06-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-26","vendors":["Red Hat"]},"summary":"An admin can leak LDAP bind credentials by changing the connection URL to an attacker-controlled host, exposing domain credentials.","url":"https://insights.sbomify.com/CVE-2024-5967/"}