CVE-2024-32656: Ant media server Ant Media Server Vulnerable To Vulnerability
HIGHCVE-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
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).
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.
<dependency>
<groupId>io.antmedia</groupId>
<artifactId>ant-media-server</artifactId>
<version>2.9.0</version>
</dependency>
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
CVE-2024-32656 Affected Ant media server Versions
1 component(s)| 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?
Which Ant media server versions are affected?
What version fixes CVE-2024-32656?
Is ant-media-server affected?
What is the CVSS score of CVE-2024-32656?
What CWE is associated with CVE-2024-32656?
How can I check Maven dependencies for CVE-2024-32656?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}