CVE-2024-32656: Ant media server Ant Media Server Vulnerable To Vulnerability

HIGH
Advisory Identifier: GHSA-qwhw-hh9j-54f5
CVSS 7.8
CWE-862
Published
Advisory Summary

CVE-2024-32656 is a HIGH (CVSS 7.8) ant media server vulnerable to vulnerability (CWE-862: Missing Authorization) affecting Ant media server libraries in the Maven ecosystem. The issue involves ant media server vulnerable to a local privilege escalation. Remediation is available by upgrading affected packages to version 2.9.0.

CVE-2024-32656 at a Glance

CVE Identifier CVE-2024-32656
GHSA Identifier GHSA-qwhw-hh9j-54f5
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-862: Missing Authorization
Affected Product Ant media server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-32656

To remediate this vulnerability, upgrade all affected Ant media server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

io.antmedia:ant-media-server fixed: 2.9.0
<dependency>
    <groupId>io.antmedia</groupId>
    <artifactId>ant-media-server</artifactId>
    <version>2.9.0</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=io.antmedia

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-32656, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=io.antmedia

Analyze the terminal output to locate any version of Ant media server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=io.antmedia 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Ant media server, 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

### Impact We have identified a local privilege escalation vulnerability in Ant Media Server which allows any unprivileged operating system user account to escalate privileges to the root user account on the system. This vulnerability arises from Ant Media Server running with Java Management Extensions (JMX) enabled and authentication disabled on localhost on port 5599/TCP. This vulnerability is nearly identical to the local privilege escalation vulnerability CVE-2023-26269 identified in Apache James. Any unprivileged operating system user can connect to the JMX service running on port 5599/TCP on localhost and leverage the MLet Bean within JMX to load a remote MBean from an attacker-controlled server. This allows an attacker to execute arbitrary code within the Java process run by Ant Media Server and execute code within the context of the “antmedia” service account on the system. ### Patches 2.9.0 ### Workarounds Remote the following parameters from antmedia.service file ```-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5599 -Dcom.sun.management.jmxremote.local.only=true -Dcom.sun.management.jmxremote.host=127.0.0.1 -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.useLocalHostname=true -Dcom.sun.management.jmxremote.rmi.port=5599``` Thank you [Adam Crosser](https://www.linkedin.com/in/adam-crosser-366263265/) for reporting the issue [Local Privilege Escalation via Unauthenticated JMX Remote Management Interface (1).pdf](https://github.com/ant-media/Ant-Media-Server/files/15059667/Local.Privilege.Escalation.via.Unauthenticated.JMX.Remote.Management.Interface.1.pdf)

CVE-2024-32656 Affected Ant media server Versions

1 component(s)
Fixed Versions:
2.9.0
Product / Package Ecosystem Affected Versions Fixed Version
io.antmedia:ant-media-server
Maven
≥ 2.6.0
< 2.9.0
2.9.0

References

Frequently Asked Questions

What is CVE-2024-32656?
CVE-2024-32656 is a security vulnerability in Ant media server involving Ant Media Server vulnerable to a local privilege escalation under CWE-862: Missing Authorization.
Which Ant media server versions are affected?
Affected versions include releases prior to 2.9.0 across affected packages: io.antmedia:ant-media-server.
What version fixes CVE-2024-32656?
Upgrading to 2.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ant-media-server affected?
Yes, io.antmedia:ant-media-server is affected in releases prior to 2.9.0. Upgrade your dependency to 2.9.0 or later.
What is the CVSS score of CVE-2024-32656?
CVE-2024-32656 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-32656?
CVE-2024-32656 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2024-32656?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.antmedia'. 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-qwhw-hh9j-54f5",
  "modified" : "2024-04-23T14:16:03Z",
  "published" : "2024-04-22T15:51:59Z",
  "aliases" : [ "CVE-2024-32656" ],
  "summary" : "Ant Media Server vulnerable to a local privilege escalation",
  "details" : "### Impact\nWe have identified a local privilege escalation vulnerability in Ant Media Server which allows any unprivileged operating system user account to escalate privileges to the root user account on the system. This vulnerability arises from Ant Media Server running with Java Management Extensions (JMX) enabled and authentication disabled on localhost on port 5599/TCP. This vulnerability is nearly identical to the local privilege escalation vulnerability CVE-2023-26269 identified in Apache James.\nAny unprivileged operating system user can connect to the JMX service running on port 5599/TCP on localhost and leverage the MLet Bean within JMX to load a remote MBean from an attacker-controlled server. This allows an attacker to execute arbitrary code within the Java process run by Ant Media Server and execute code within the context of the “antmedia” service account on the system.\n\n### Patches\n2.9.0\n\n### Workarounds\nRemote the following parameters from antmedia.service file\n\n```-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5599 -Dcom.sun.management.jmxremote.local.only=true -Dcom.sun.management.jmxremote.host=127.0.0.1 -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.useLocalHostname=true -Dcom.sun.management.jmxremote.rmi.port=5599```\n\n\n\nThank you [Adam Crosser](https://www.linkedin.com/in/adam-crosser-366263265/) for reporting the issue\n[Local Privilege Escalation via Unauthenticated JMX Remote Management Interface (1).pdf](https://github.com/ant-media/Ant-Media-Server/files/15059667/Local.Privilege.Escalation.via.Unauthenticated.JMX.Remote.Management.Interface.1.pdf)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.antmedia:ant-media-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.6.0"
      }, {
        "fixed" : "2.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ant-media/Ant-Media-Server/security/advisories/GHSA-qwhw-hh9j-54f5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32656"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ant-media/Ant-Media-Server/commit/9cb38500729e0ff302da0290b9cfe1ec4dd6c764"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ant-media/Ant-Media-Server"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-22T15:51:59Z",
    "nvd_published_at" : "2024-04-22T23:15:50Z"
  }
}