# CVE-2024-2321: Incorrect Authorization in Multiple WSO2 Products Allows API Access via Refresh Token

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.6
- **CVSS:** 5.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-6qjp-wm6g-m32r
- **Published:** 2025-02-27T04:08:33.552Z
- **Modified:** 2026-06-17T07:24:18.777Z

## Who should check

- Projects that depend on Maven package org.wso2.am:am-parent (\>= 4.2.0-beta, \<= 4.2.0)
- Projects that depend on Maven package org.wso2.is:identity-server-parent (\>= 6.1.0-beta, \<= 6.1.0)
- Anyone running WSO2 API Manager \>= 4.0.0, \< 4.0.0.275; \>= 4.1.0, \< 4.1.0.153; \>= 4.2.0, \< 4.2.0.83
- Anyone running WSO2 Identity Server \>= 5.11.0, \< 5.11.0.326; \>= 6.0.0, \< 6.0.0.172; \>= 6.1.0, \< 6.1.0.130

## Description

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.

## Affected and fixed versions

- Maven `org.wso2.am:am-parent`: affected \>= 4.2.0-beta, \<= 4.2.0; fixed no fix listed yet (osv)
- Maven `org.wso2.is:identity-server-parent`: affected \>= 6.1.0-beta, \<= 6.1.0; fixed no fix listed yet (osv)
- WSO2 API Manager: \>= 4.0.0, \< 4.0.0.275; \>= 4.1.0, \< 4.1.0.153; \>= 4.2.0, \< 4.2.0.83 (cvelist)
- WSO2 Identity Server: \>= 5.11.0, \< 5.11.0.326; \>= 6.0.0, \< 6.0.0.172; \>= 6.1.0, \< 6.1.0.130 (cvelist)

## Mitigation

- Upgrade WSO2 API Manager to 4.2.0.83 or later.
- Upgrade WSO2 Identity Server to 6.1.0.130 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-2321. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-2321.md
Affected: org.wso2.am:am-parent >= 4.2.0-beta, <= 4.2.0; org.wso2.is:identity-server-parent >= 6.1.0-beta, <= 6.1.0
Fixed in: WSO2 API Manager 4.0.0.275, WSO2 API Manager 4.1.0.153, WSO2 API Manager 4.2.0.83, WSO2 Identity Server 5.11.0.326, WSO2 Identity Server 6.0.0.172, WSO2 Identity Server 6.1.0.130

Steps:
1. Search this machine and project for org.wso2.am:am-parent (Maven), org.wso2.is:identity-server-parent (Maven), WSO2 API Manager, WSO2 Identity Server: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-2321 being exploited?

There is no confirmed exploitation: CVE-2024-2321 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-2321?

Medium: CVSS 5.6 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-2321?

org.wso2.am:am-parent \>= 4.2.0-beta, \<= 4.2.0; org.wso2.is:identity-server-parent \>= 6.1.0-beta, \<= 6.1.0.

### Is there a fix for CVE-2024-2321?

Yes. Fixed in WSO2 API Manager 4.0.0.275, WSO2 API Manager 4.1.0.153, WSO2 API Manager 4.2.0.83, WSO2 Identity Server 5.11.0.326, WSO2 Identity Server 6.0.0.172, WSO2 Identity Server 6.1.0.130. Upgrade WSO2 API Manager to 4.2.0.83 or later. Upgrade WSO2 Identity Server to 6.1.0.130 or later.

### How do I check if I'm affected by CVE-2024-2321?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2024/WSO2-2024-3213/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-2321>
- other: <https://github.com/wso2/docs-security/blob/76bad9a2f38dc3377af476d0be52c6e775e3d864/en/docs/security-announcements/security-advisories/2024/WSO2-2024-3213.md>
- other: <https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2024/WSO2-2024-3213>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-2321>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6qjp-wm6g-m32r> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-2321> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-2321>
