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

Medium 5.6 Published Updated

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.

PackageAffectedFixed in
org.wso2.am:am-parent MavenFrom 4.0.0-beta to 4.0.0None
org.wso2.am:am-parent MavenFrom 4.0.0-beta to 4.0.0None
org.wso2.am:am-parent MavenFrom 4.1.0-alpha to 4.1.0None
org.wso2.am:am-parent MavenFrom 4.1.0-alpha to 4.1.0None
org.wso2.am:am-parent MavenFrom 4.2.0-beta to 4.2.0None
org.wso2.am:am-parent MavenFrom 4.2.0-beta to 4.2.0None
6 more packages
org.wso2.is:identity-server-parent MavenFrom 5.11.0-alpha to 5.11.0None
org.wso2.is:identity-server-parent MavenFrom 5.11.0-alpha to 5.11.0None
org.wso2.is:identity-server-parent MavenFrom 6.0.0-alpha3 to 6.0.0None
org.wso2.is:identity-server-parent MavenFrom 6.0.0-alpha3 to 6.0.0None
org.wso2.is:identity-server-parent MavenFrom 6.1.0-beta to 6.1.0None
org.wso2.is:identity-server-parent MavenFrom 6.1.0-beta to 6.1.0None

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.

All Wso2 Api Manager vulnerabilities

Sources

Also known as GHSA-6qjp-wm6g-m32r.

Is CVE-2024-2321 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free