GHSA-mwm4-5qwr-g9pf: Keycloak services Keycloak Is Vulnerable To IDN Vulnerability
LOWGHSA-mwm4-5qwr-g9pf is a LOW keycloak is vulnerable to idn vulnerability (CWE-284: Improper Access Control) affecting Keycloak services libraries in the Maven ecosystem. The issue involves keycloak is vulnerable to idn homograph attack. Remediation is available by upgrading affected packages to version 18.0.0.
GHSA-mwm4-5qwr-g9pf at a Glance
How to Fix GHSA-mwm4-5qwr-g9pf
To remediate this vulnerability, upgrade all affected Keycloak services dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services</artifactId>
<version>18.0.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.keycloak
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-mwm4-5qwr-g9pf, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.keycloak
Analyze the terminal output to locate any version of Keycloak services in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 18.0.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.keycloak command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Keycloak services, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-mwm4-5qwr-g9pf Affected Keycloak services Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.keycloak:keycloak-services
|
Maven |
< 18.0.0
|
18.0.0
|
References
Frequently Asked Questions
What is GHSA-mwm4-5qwr-g9pf?
Which Keycloak services versions are affected?
What version fixes GHSA-mwm4-5qwr-g9pf?
Is keycloak-services affected?
What CWE is associated with GHSA-mwm4-5qwr-g9pf?
How can I check Maven dependencies for GHSA-mwm4-5qwr-g9pf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mwm4-5qwr-g9pf",
"modified" : "2022-04-28T21:00:31Z",
"published" : "2022-04-28T21:00:31Z",
"aliases" : [ ],
"summary" : "Keycloak is vulnerable to IDN homograph attack",
"details" : "A flaw was found in keycloak, where IDN homograph attacks are possible. This flaw allows a malicious user to register a name that already exists and then tricking an admin to grant extra privileges. The highest threat from this vulnerability is to integrity.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.keycloak:keycloak-services"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "18.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/keycloak/keycloak/security/advisories/GHSA-mwm4-5qwr-g9pf"
}, {
"type" : "WEB",
"url" : "https://github.com/keycloak/keycloak/commit/ac79fd0c23c6947a04073afc61e30d341498438e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/keycloak/keycloak"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-28T21:00:31Z",
"nvd_published_at" : null
}
}