CVE-2017-9790: Mesos Use After Free Vulnerability
HIGHCVE-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
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).
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.
<dependency>
<groupId>org.apache.mesos</groupId>
<artifactId>mesos</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.mesos</groupId>
<artifactId>mesos</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.mesos</groupId>
<artifactId>mesos</artifactId>
<version>1.3.1</version>
</dependency>
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
CVE-2017-9790 Affected Mesos Versions
3 component(s)| 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?
Which Mesos versions are affected?
What version fixes CVE-2017-9790?
Is mesos affected?
What is the CVSS score of CVE-2017-9790?
What CWE is associated with CVE-2017-9790?
How can I check Maven dependencies for CVE-2017-9790?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}