CVE-2024-25421: Xmppserver Ignite Realtime Openfire Privilege Escalation Vulnerability
HIGHCVE-2024-25421 is a HIGH ignite realtime openfire privilege escalation vulnerability (CWE-863: Incorrect Authorization) affecting Xmppserver libraries in the Maven ecosystem. The issue involves ignite realtime openfire privilege escalation vulnerability. Remediation is available by upgrading affected packages to version 4.8.1.
CVE-2024-25421 at a Glance
How to Fix CVE-2024-25421
To remediate this vulnerability, upgrade all affected Xmppserver 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.igniterealtime.openfire</groupId>
<artifactId>xmppserver</artifactId>
<version>4.8.1</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.igniterealtime.openfire
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-25421, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.igniterealtime.openfire
Analyze the terminal output to locate any version of Xmppserver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.igniterealtime.openfire 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 Xmppserver, 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-25421 Affected Xmppserver Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.igniterealtime.openfire:xmppserver
|
Maven |
< 4.8.1
|
4.8.1
|
References
Frequently Asked Questions
What is CVE-2024-25421?
Which Xmppserver versions are affected?
What version fixes CVE-2024-25421?
Is xmppserver affected?
What CWE is associated with CVE-2024-25421?
How can I check Maven dependencies for CVE-2024-25421?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6pwg-gg6j-5crm",
"modified" : "2024-03-27T21:59:25Z",
"published" : "2024-03-26T21:30:47Z",
"aliases" : [ "CVE-2024-25421" ],
"summary" : "Ignite Realtime Openfire privilege escalation vulnerability",
"details" : "An issue in Ignite Realtime Openfire v.4.8.0 and before allows a remote attacker to escalate privileges via the ROOM_CACHE component.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.igniterealtime.openfire:xmppserver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25421"
}, {
"type" : "WEB",
"url" : "https://github.com/igniterealtime/Openfire/commit/d66bddd29dbf56aa9b822635619fa66cca6f2112"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/igniterealtime/Openfire"
}, {
"type" : "WEB",
"url" : "https://github.com/igniterealtime/Openfire/blob/main/xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/LocalMUCRoomManager.java"
}, {
"type" : "WEB",
"url" : "https://www.hackthebox.com/blog/openfire-cves-explained-CVE-2024-25420-CVE-2024-25421"
}, {
"type" : "WEB",
"url" : "https://www.igniterealtime.org/projects/openfire"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-27T21:59:25Z",
"nvd_published_at" : "2024-03-26T21:15:52Z"
}
}