CVE-2024-35371: Ant media server Ant-Media-Server Vulnerable To Improper Output Vulnerability

HIGH
Advisory Identifier: GHSA-2gx6-qrpp-c4p3
CVSS 7.5
CWE-125
Published
Advisory Summary

CVE-2024-35371 is a HIGH (CVSS 7.5) ant-media-server vulnerable to improper output vulnerability (CWE-125: Out-of-bounds Read) affecting Ant media server libraries in the Maven ecosystem. The issue involves ant-media-server vulnerable to improper output neutralization for logs. Remediation is available by upgrading affected packages to version 2.9.0.

CVE-2024-35371 at a Glance

CVE Identifier CVE-2024-35371
GHSA Identifier GHSA-2gx6-qrpp-c4p3
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Ant media server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2024-35371

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-35371, 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. 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

Ant-Media-Server v2.8.2 is affected by Improper Output Neutralization for Logs. The vulnerability stems from insufficient input sanitization in the logging mechanism. Without proper filtering or validation, user-controllable data, such as identifiers or other sensitive information, can be included in log entries without restrictions.

CVE-2024-35371 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.9.0
2.9.0

References

Frequently Asked Questions

What is CVE-2024-35371?
CVE-2024-35371 is a security vulnerability in Ant media server involving Ant-Media-Server vulnerable to Improper Output Neutralization for Logs under CWE-125: Out-of-bounds Read.
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-35371?
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-35371?
CVE-2024-35371 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-35371?
CVE-2024-35371 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check Maven dependencies for CVE-2024-35371?
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-2gx6-qrpp-c4p3",
  "modified" : "2024-12-02T20:18:25Z",
  "published" : "2024-11-29T21:31:04Z",
  "aliases" : [ "CVE-2024-35371" ],
  "summary" : "Ant-Media-Server vulnerable to Improper Output Neutralization for Logs",
  "details" : "Ant-Media-Server v2.8.2 is affected by Improper Output Neutralization for Logs. The vulnerability stems from insufficient input sanitization in the logging mechanism. Without proper filtering or validation, user-controllable data, such as identifiers or other sensitive information, can be included in log entries without restrictions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.antmedia:ant-media-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.9.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-35371"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ant-media/ant-media-server/commit/4d4763bd4fd06e515c19544e5170ca0f34c9ce45"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/1047524396/4eb17867f2e375f4824274c5e7b4d384"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ant-media/Ant-Media-Server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ant-media/Ant-Media-Server/blob/ams-v2.8.2/src/main/java/io/antmedia/rest/RestServiceBase.java#L356"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-02T20:18:25Z",
    "nvd_published_at" : "2024-11-29T20:15:20Z"
  }
}