CVE-2024-2321: Am parent WSO2 Incorrect Authorization Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-6qjp-wm6g-m32r
CVSS 5.6
CWE-863
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-2321
GHSA Identifier GHSA-6qjp-wm6g-m32r
Severity MODERATE
CVSS v3.1 Base Score 5.6
CWE Classification CWE-863: Incorrect Authorization
Affected Product Am parent
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

org.wso2.am:am-parent fixed: Latest secure release
<dependency>
    <groupId>org.wso2.am</groupId>
    <artifactId>am-parent</artifactId>
    <version>Latest secure release</version>
</dependency>
org.wso2.am:am-parent fixed: Latest secure release
<dependency>
    <groupId>org.wso2.am</groupId>
    <artifactId>am-parent</artifactId>
    <version>Latest secure release</version>
</dependency>
org.wso2.am:am-parent fixed: Latest secure release
<dependency>
    <groupId>org.wso2.am</groupId>
    <artifactId>am-parent</artifactId>
    <version>Latest secure release</version>
</dependency>
org.wso2.is:identity-server-parent fixed: Latest secure release
<dependency>
    <groupId>org.wso2.is</groupId>
    <artifactId>identity-server-parent</artifactId>
    <version>Latest secure release</version>
</dependency>
org.wso2.is:identity-server-parent fixed: Latest secure release
<dependency>
    <groupId>org.wso2.is</groupId>
    <artifactId>identity-server-parent</artifactId>
    <version>Latest secure release</version>
</dependency>
org.wso2.is:identity-server-parent fixed: Latest secure release
<dependency>
    <groupId>org.wso2.is</groupId>
    <artifactId>identity-server-parent</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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. Exploitation 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.

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?
CVE-2024-2321 is a security vulnerability in Am parent involving WSO2 incorrect authorization vulnerability under CWE-863: Incorrect Authorization.
Which Am parent versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.wso2.am:am-parent, org.wso2.is:identity-server-parent.
What version fixes CVE-2024-2321?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is am-parent affected?
Yes, org.wso2.am:am-parent is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is identity-server-parent affected?
Yes, org.wso2.is:identity-server-parent is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-2321?
CVE-2024-2321 has a CVSS v3.1 base score of 5.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-2321?
CVE-2024-2321 is classified under CWE-863: Incorrect Authorization (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.).
How can I check Maven dependencies for CVE-2024-2321?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wso2.am'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}