CVE-2024-2321: Am parent WSO2 Incorrect Authorization Vulnerability Vulnerability
MODERATECVE-2024-2321 is a MODERATE (CVSS 5.6) wso2 incorrect authorization vulnerability vulnerability (CWE-863: Incorrect Authorization) affecting Am parent libraries in the Maven ecosystem. The issue involves wso2 incorrect authorization vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-2321 at a Glance
Security Impact
CVSS: 5.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-2321
To remediate this vulnerability, upgrade all affected Am parent 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.wso2.am</groupId>
<artifactId>am-parent</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.wso2.am</groupId>
<artifactId>am-parent</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.wso2.am</groupId>
<artifactId>am-parent</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.wso2.is</groupId>
<artifactId>identity-server-parent</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.wso2.is</groupId>
<artifactId>identity-server-parent</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.wso2.is</groupId>
<artifactId>identity-server-parent</artifactId>
<version>Latest secure release</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.wso2.am
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-2321, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.wso2.am
Analyze the terminal output to locate any version of Am parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.wso2.am 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Am parent, 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
CVE-2024-2321 Affected Am parent Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.wso2.am:am-parent
|
Maven |
≥ 4.2.0-beta
≤ 4.2.0
|
|
|
org.wso2.am:am-parent
|
Maven |
≥ 4.1.0-alpha
≤ 4.1.0
|
|
|
org.wso2.am:am-parent
|
Maven |
≥ 4.0.0-beta
≤ 4.0.0
|
|
|
org.wso2.is:identity-server-parent
|
Maven |
≥ 6.1.0-beta
≤ 6.1.0
|
|
|
org.wso2.is:identity-server-parent
|
Maven |
≥ 6.0.0-alpha3
≤ 6.0.0
|
|
|
org.wso2.is:identity-server-parent
|
Maven |
≥ 5.11.0-alpha
≤ 5.11.0
|
|
References
Frequently Asked Questions
What is CVE-2024-2321?
Which Am parent versions are affected?
What version fixes CVE-2024-2321?
Is am-parent affected?
Is identity-server-parent affected?
What is the CVSS score of CVE-2024-2321?
What CWE is associated with CVE-2024-2321?
How can I check Maven dependencies for CVE-2024-2321?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6qjp-wm6g-m32r",
"modified" : "2025-03-03T19:50:57Z",
"published" : "2025-02-27T06:30:53Z",
"aliases" : [ "CVE-2024-2321" ],
"summary" : "WSO2 incorrect authorization vulnerability",
"details" : "An incorrect authorization vulnerability exists in multiple WSO2 products, allowing protected APIs to be accessed directly using a refresh token instead of the expected access token. Due to improper authorization checks and token mapping, session cookies are not required for API access, potentially enabling unauthorized operations.\n\nExploitation requires an attacker to obtain a valid refresh token of an admin user. Since refresh tokens generally have a longer expiration time, this could lead to prolonged unauthorized access to API resources, impacting data confidentiality and integrity.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wso2.am:am-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0-beta"
}, {
"last_affected" : "4.2.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wso2.am:am-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0-alpha"
}, {
"last_affected" : "4.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wso2.am:am-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0-beta"
}, {
"last_affected" : "4.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wso2.is:identity-server-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0-beta"
}, {
"last_affected" : "6.1.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wso2.is:identity-server-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0-alpha3"
}, {
"last_affected" : "6.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.wso2.is:identity-server-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.11.0-alpha"
}, {
"last_affected" : "5.11.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-2321"
}, {
"type" : "WEB",
"url" : "https://github.com/wso2/docs-security/blob/76bad9a2f38dc3377af476d0be52c6e775e3d864/en/docs/security-announcements/security-advisories/2024/WSO2-2024-3213.md"
}, {
"type" : "WEB",
"url" : "https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2024/WSO2-2024-3213"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-03T19:50:56Z",
"nvd_published_at" : "2025-02-27T05:15:13Z"
}
}