GHSA-8wm9-24qg-m5qj: Duplicate Advisory Remote Code Execution Vulnerability
MODERATEGHSA-8wm9-24qg-m5qj is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-837: Improper Enforcement of a Single, Unique Action) affecting Duplicate Advisory libraries in the Maven ecosystem. The issue involves keycloak has a brute force login protection bypass. Remediation is available by upgrading affected packages to version 24.0.4.
GHSA-8wm9-24qg-m5qj at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix GHSA-8wm9-24qg-m5qj
To remediate this vulnerability, upgrade all affected Duplicate Advisory 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>24.0.4</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-8wm9-24qg-m5qj, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.keycloak
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 24.0.4), 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-837: Improper Enforcement of a Single, Unique Action, where the product requires that an actor should only be able to perform an action once, or to have only one unique action, but the product does not enforce or improperly enforces this restriction. In Duplicate Advisory, 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-8wm9-24qg-m5qj Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.keycloak:keycloak-services
|
Maven |
< 24.0.4
|
24.0.4
|
References
Frequently Asked Questions
What is GHSA-8wm9-24qg-m5qj?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-8wm9-24qg-m5qj?
Is keycloak-services affected?
What is the CVSS score of GHSA-8wm9-24qg-m5qj?
What CWE is associated with GHSA-8wm9-24qg-m5qj?
How can I check Maven dependencies for GHSA-8wm9-24qg-m5qj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8wm9-24qg-m5qj",
"modified" : "2024-09-17T22:22:26Z",
"published" : "2024-09-03T21:31:12Z",
"withdrawn" : "2024-09-17T22:22:26Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Keycloak has a brute force login protection bypass",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-gc7q-jgjv-vjr2. This link is maintained to preserve external references.\n\n## Original Description\nA vulnerability was found in Keycloak. This flaw allows attackers to bypass brute force protection by exploiting the timing of login attempts. By initiating multiple login requests simultaneously, attackers can exceed the configured limits for failed attempts before the system locks them out. This timing loophole enables attackers to make more guesses at passwords than intended, potentially compromising account security on affected systems.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.keycloak:keycloak-services"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "24.0.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 24.0.3"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-4629"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6493"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6494"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6495"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6497"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6499"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6500"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2024:6501"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2024-4629"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2276761"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/keycloak/keycloak"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-837" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-03T21:57:40Z",
"nvd_published_at" : "2024-09-03T20:15:09Z"
}
}