CVE-2018-11793: Mesos Stack Overflow Vulnerability

HIGH
Advisory Identifier: GHSA-p2xq-vcm7-xjj6
CVSS 7.5
CWE-119
Published
Advisory Summary

CVE-2018-11793 is a HIGH (CVSS 7.5) stack overflow vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Mesos libraries in the Maven ecosystem. The issue involves stack overflow in apache mesos. Remediation is available by upgrading affected packages to version 1.4.3, 1.5.2, 1.6.2, 1.7.1.

CVE-2018-11793 at a Glance

CVE Identifier CVE-2018-11793
GHSA Identifier GHSA-p2xq-vcm7-xjj6
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Mesos
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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2018-11793

To remediate this vulnerability, upgrade all affected Mesos 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.apache.mesos:mesos fixed: 1.4.3
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.4.3</version>
</dependency>
org.apache.mesos:mesos fixed: 1.5.2
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.5.2</version>
</dependency>
org.apache.mesos:mesos fixed: 1.6.2
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.6.2</version>
</dependency>
org.apache.mesos:mesos fixed: 1.7.1
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.7.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.apache.mesos

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.mesos

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

Note: The mvn dependency:tree -Dincludes=org.apache.mesos 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Mesos, 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

When parsing a JSON payload with deeply nested JSON structures, the parser in Apache Mesos versions pre-1.4.x, 1.4.0 to 1.4.2, 1.5.0 to 1.5.1, 1.6.0 to 1.6.1, and 1.7.0 might overflow the stack due to unbounded recursion. A malicious actor can therefore cause a denial of service of Mesos masters rendering the Mesos-controlled cluster inoperable.

CVE-2018-11793 Affected Mesos Versions

4 component(s)
Fixed Versions:
1.4.31.5.21.6.21.7.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.mesos:mesos
Maven
< 1.4.3
1.4.3
org.apache.mesos:mesos
Maven
≥ 1.5.0
< 1.5.2
1.5.2
org.apache.mesos:mesos
Maven
≥ 1.6.0
< 1.6.2
1.6.2
org.apache.mesos:mesos
Maven
≥ 1.7.0
< 1.7.1
All 1 versions
1.7.0
1.7.1

References

Frequently Asked Questions

What is CVE-2018-11793?
CVE-2018-11793 is a security vulnerability in Mesos involving Stack Overflow in Apache Mesos under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Mesos versions are affected?
Affected versions include releases prior to 1.4.3, 1.5.2, 1.6.2, 1.7.1 across affected packages: org.apache.mesos:mesos.
What version fixes CVE-2018-11793?
Upgrading to 1.4.3, 1.5.2, 1.6.2, 1.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mesos affected?
Yes, org.apache.mesos:mesos is affected in releases prior to 1.4.3, 1.5.2, 1.6.2, 1.7.1. Upgrade your dependency to 1.4.3, 1.5.2, 1.6.2, 1.7.1 or later.
What is the CVSS score of CVE-2018-11793?
CVE-2018-11793 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-11793?
CVE-2018-11793 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2018-11793?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.mesos'. 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-p2xq-vcm7-xjj6",
  "modified" : "2022-09-14T22:44:16Z",
  "published" : "2019-03-06T17:36:22Z",
  "aliases" : [ "CVE-2018-11793" ],
  "summary" : "Stack Overflow in Apache Mesos",
  "details" : "When parsing a JSON payload with deeply nested JSON structures, the parser in Apache Mesos versions pre-1.4.x, 1.4.0 to 1.4.2, 1.5.0 to 1.5.1, 1.6.0 to 1.6.1, and 1.7.0 might overflow the stack due to unbounded recursion. A malicious actor can therefore cause a denial of service of Mesos masters rendering the Mesos-controlled cluster inoperable.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.mesos:mesos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.mesos:mesos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.5.0"
      }, {
        "fixed" : "1.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.mesos:mesos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.0"
      }, {
        "fixed" : "1.6.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.mesos:mesos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.7.1"
      } ]
    } ],
    "versions" : [ "1.7.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11793"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-p2xq-vcm7-xjj6"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/9be975c53e5ad612c7e0af39f5b88837fbfbc32108e587d3d8499844@%3Cdev.mesos.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/107281"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:47:49Z",
    "nvd_published_at" : null
  }
}