CVE-2024-25421: Xmppserver Ignite Realtime Openfire Privilege Escalation Vulnerability

HIGH
Advisory Identifier: GHSA-6pwg-gg6j-5crm
CWE-863
Published
Advisory Summary

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

CVE Identifier CVE-2024-25421
GHSA Identifier GHSA-6pwg-gg6j-5crm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-863: Incorrect Authorization
Affected Product Xmppserver
Package Ecosystem Maven
Published Date
Last Updated

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.

org.igniterealtime.openfire:xmppserver fixed: 4.8.1
<dependency>
    <groupId>org.igniterealtime.openfire</groupId>
    <artifactId>xmppserver</artifactId>
    <version>4.8.1</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.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

An issue in Ignite Realtime Openfire v.4.8.0 and before allows a remote attacker to escalate privileges via the ROOM_CACHE component.

CVE-2024-25421 Affected Xmppserver Versions

1 component(s)
Fixed Versions:
4.8.1
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?
CVE-2024-25421 is a security vulnerability in Xmppserver involving Ignite Realtime Openfire privilege escalation vulnerability under CWE-863: Incorrect Authorization.
Which Xmppserver versions are affected?
Affected versions include releases prior to 4.8.1 across affected packages: org.igniterealtime.openfire:xmppserver.
What version fixes CVE-2024-25421?
Upgrading to 4.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xmppserver affected?
Yes, org.igniterealtime.openfire:xmppserver is affected in releases prior to 4.8.1. Upgrade your dependency to 4.8.1 or later.
What CWE is associated with CVE-2024-25421?
CVE-2024-25421 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-25421?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.igniterealtime.openfire'. 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-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"
  }
}