CVE-2024-2321 Incorrect Authorization in Multiple WSO2 Products Allows API Access via Refresh Token
Attackers with a valid admin refresh token can bypass authorization checks to access protected APIs, leading to unauthorized data access and modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-2321?
CVE-2024-2321 is a medium-severity missing authorization vulnerability in Wso2 Api Manager, published on 27 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-863
Which versions are affected by CVE-2024-2321?
12 open source packages ship an affected version, including org.wso2.am:am-parent and org.wso2.is:identity-server-parent. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.wso2.am:am-parent Maven | From 4.0.0-beta to 4.0.0 | None |
org.wso2.am:am-parent Maven | From 4.0.0-beta to 4.0.0 | None |
org.wso2.am:am-parent Maven | From 4.1.0-alpha to 4.1.0 | None |
org.wso2.am:am-parent Maven | From 4.1.0-alpha to 4.1.0 | None |
org.wso2.am:am-parent Maven | From 4.2.0-beta to 4.2.0 | None |
org.wso2.am:am-parent Maven | From 4.2.0-beta to 4.2.0 | None |
6 more packages
org.wso2.is:identity-server-parent Maven | From 5.11.0-alpha to 5.11.0 | None |
org.wso2.is:identity-server-parent Maven | From 5.11.0-alpha to 5.11.0 | None |
org.wso2.is:identity-server-parent Maven | From 6.0.0-alpha3 to 6.0.0 | None |
org.wso2.is:identity-server-parent Maven | From 6.0.0-alpha3 to 6.0.0 | None |
org.wso2.is:identity-server-parent Maven | From 6.1.0-beta to 6.1.0 | None |
org.wso2.is:identity-server-parent Maven | From 6.1.0-beta to 6.1.0 | None |
Products include Wso2 Api Manager, Wso2 Identity Server.
How do I fix CVE-2024-2321?
No fix has been published for CVE-2024-2321 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-2321 being exploited?
There is no known exploitation of CVE-2024-2321 in the wild and no public exploit code.
Other vulnerabilities in Wso2 Api Manager
- CVE-2022-29464 WSO2 Multiple Products Unrestrictive Upload of File
- CVE-2024-6914 Incorrect Authorization in Multiple WSO2 Products via Account Recovery SOAP Admin Service Leading to Account Takeover
- CVE-2020-13226 WSO2 API Manager vulnerable to SSRF
- CVE-2025-2905 An XML External Entity (XXE) vulnerability in Multiple WSO2 Products
- CVE-2021-42646 XML external entity in n/a
Sources
Also known as GHSA-6qjp-wm6g-m32r.