CVE-2019-0204: Mesos Docker Image Code Execution With Vulnerability

HIGH
Advisory Identifier: GHSA-32w9-2qpc-5f9v
CVSS 7.8
Published
Advisory Summary

CVE-2019-0204 is a HIGH (CVSS 7.8) docker image code execution with vulnerability (General Security Weakness) affecting Mesos libraries in the Maven ecosystem. The issue involves docker image code execution with apache mesos. Remediation is available by upgrading affected packages to version 1.4.3, 1.5.3, 1.6.2, 1.7.2.

CVE-2019-0204 at a Glance

CVE Identifier CVE-2019-0204
GHSA Identifier GHSA-32w9-2qpc-5f9v
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification General Security Weakness
Affected Product Mesos
Package Ecosystem Maven
Published Date
Last Updated

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:N/UI:R/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2019-0204

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.3
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.5.3</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.2
<dependency>
    <groupId>org.apache.mesos</groupId>
    <artifactId>mesos</artifactId>
    <version>1.7.2</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-2019-0204, 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 General Security Weakness. 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

A specifically crafted Docker image running under the root user can overwrite the init helper binary of the container runtime and/or the command executor in Apache Mesos versions pre-1.4.x, 1.4.0 to 1.4.2, 1.5.0 to 1.5.2, 1.6.0 to 1.6.1, and 1.7.0 to 1.7.1. A malicious actor can therefore gain root-level code execution on the host.

CVE-2019-0204 Affected Mesos Versions

4 component(s)
Fixed Versions:
1.4.31.5.31.6.21.7.2
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.3
1.5.3
org.apache.mesos:mesos
Maven
≥ 1.6.0
< 1.6.2
1.6.2
org.apache.mesos:mesos
Maven
≥ 1.7.0
< 1.7.2
1.7.2

References

Frequently Asked Questions

What is CVE-2019-0204?
CVE-2019-0204 is a security vulnerability in Mesos involving Docker image code execution with Apache Mesos under General Security Weakness.
Which Mesos versions are affected?
Affected versions include releases prior to 1.4.3, 1.5.3, 1.6.2, 1.7.2 across affected packages: org.apache.mesos:mesos.
What version fixes CVE-2019-0204?
Upgrading to 1.4.3, 1.5.3, 1.6.2, 1.7.2 (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.3, 1.6.2, 1.7.2. Upgrade your dependency to 1.4.3, 1.5.3, 1.6.2, 1.7.2 or later.
What is the CVSS score of CVE-2019-0204?
CVE-2019-0204 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-0204?
CVE-2019-0204 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2019-0204?
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-32w9-2qpc-5f9v",
  "modified" : "2022-11-01T23:33:48Z",
  "published" : "2022-05-13T01:04:24Z",
  "aliases" : [ "CVE-2019-0204" ],
  "summary" : "Docker image code execution with Apache Mesos",
  "details" : "A specifically crafted Docker image running under the root user can overwrite the init helper binary of the container runtime and/or the command executor in Apache Mesos versions pre-1.4.x, 1.4.0 to 1.4.2, 1.5.0 to 1.5.2, 1.6.0 to 1.6.1, and 1.7.0 to 1.7.1. A malicious actor can therefore gain root-level code execution on the host.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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.3"
      } ]
    } ]
  }, {
    "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.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0204"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3892"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/b162dd624dc088cd634292f0402282a1d1d0ce853baeae8205bc033c@%3Cdev.mesos.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/107605"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-01T23:33:48Z",
    "nvd_published_at" : "2019-03-25T22:29:00Z"
  }
}