CVE-2017-9790: Mesos Use After Free Vulnerability

HIGH
Advisory Identifier: GHSA-vpcv-78cp-whr3
CVSS 7.5
CWE-416
Published
Advisory Summary

CVE-2017-9790 is a HIGH (CVSS 7.5) use after free vulnerability (CWE-416: Use After Free) affecting Mesos libraries in the Maven ecosystem. The issue involves use after free in apache mesos. Remediation is available by upgrading affected packages to version 1.1.3, 1.2.2, 1.3.1.

CVE-2017-9790 at a Glance

CVE Identifier CVE-2017-9790
GHSA Identifier GHSA-vpcv-78cp-whr3
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-416: Use After Free
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-2017-9790

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.1.3
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.1.3</version>
</dependency>
org.apache.mesos:mesos fixed: 1.2.2
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.2.2</version>
</dependency>
org.apache.mesos:mesos fixed: 1.3.1
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.3.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-2017-9790, 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.1.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-416: Use After Free, where the product reuses or references memory after it has been freed. at some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. 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 handling a libprocess message wrapped in an HTTP request, libprocess in Apache Mesos before 1.1.3, 1.2.x before 1.2.2, 1.3.x before 1.3.1, and 1.4.0-dev crashes if the request path is empty, because the parser assumes the request path always starts with '/'. A malicious actor can therefore cause a denial of service of Mesos masters rendering the Mesos-controlled cluster inoperable.

CVE-2017-9790 Affected Mesos Versions

3 component(s)
Fixed Versions:
1.1.31.2.21.3.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.mesos:mesos
Maven
< 1.1.3
1.1.3
org.apache.mesos:mesos
Maven
≥ 1.2.0
< 1.2.2
1.2.2
org.apache.mesos:mesos
Maven
≥ 1.3.0
< 1.3.1
1.3.1

References

Frequently Asked Questions

What is CVE-2017-9790?
CVE-2017-9790 is a security vulnerability in Mesos involving Use after free in Apache Mesos under CWE-416: Use After Free.
Which Mesos versions are affected?
Affected versions include releases prior to 1.1.3, 1.2.2, 1.3.1 across affected packages: org.apache.mesos:mesos.
What version fixes CVE-2017-9790?
Upgrading to 1.1.3, 1.2.2, 1.3.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.1.3, 1.2.2, 1.3.1. Upgrade your dependency to 1.1.3, 1.2.2, 1.3.1 or later.
What is the CVSS score of CVE-2017-9790?
CVE-2017-9790 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-2017-9790?
CVE-2017-9790 is classified under CWE-416: Use After Free (The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.).
How can I check Maven dependencies for CVE-2017-9790?
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-vpcv-78cp-whr3",
  "modified" : "2022-11-01T22:59:03Z",
  "published" : "2022-05-13T01:48:07Z",
  "aliases" : [ "CVE-2017-9790" ],
  "summary" : "Use after free in Apache Mesos",
  "details" : "When handling a libprocess message wrapped in an HTTP request, libprocess in Apache Mesos before 1.1.3, 1.2.x before 1.2.2, 1.3.x before 1.3.1, and 1.4.0-dev crashes if the request path is empty, because the parser assumes the request path always starts with '/'. 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.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.mesos:mesos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.mesos:mesos"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "1.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-9790"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/cc1e7a69ea78da0511f5b54b6be7aa6e3c78edad5aaff430e7de028b@%3Cdev.mesos.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/101023"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-416" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-01T22:59:03Z",
    "nvd_published_at" : "2017-09-29T01:34:00Z"
  }
}