CVE-2019-12418: Apache Tomcat Insufficiently Protected Credentials Vulnerability
HIGHCVE-2019-12418 is a HIGH (CVSS 7.0) insufficiently protected credentials vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves insufficiently protected credentials in apache tomcat. Remediation is available by upgrading affected packages to version 7.0.99, 8.5.49, 9.0.29.
CVE-2019-12418 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-12418
To remediate this vulnerability, upgrade all affected Apache Tomcat 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.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>7.0.99</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>8.5.49</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.29</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.tomcat.embed
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-12418, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.tomcat.embed
Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.99), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.tomcat.embed 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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Apache Tomcat, 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-2019-12418 Affected Apache Tomcat Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
< 7.0.99
|
7.0.99
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 8.0.0
< 8.5.49
|
8.5.49
|
|
org.apache.tomcat.embed:tomcat-embed-core
|
Maven |
≥ 9.0.0
< 9.0.29
|
9.0.29
|
References
Frequently Asked Questions
What is CVE-2019-12418?
Which Apache Tomcat versions are affected?
What version fixes CVE-2019-12418?
Is tomcat-embed-core affected?
What is the CVSS score of CVE-2019-12418?
What CWE is associated with CVE-2019-12418?
How can I check Maven dependencies for CVE-2019-12418?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hh3j-x4mc-g48r",
"modified" : "2022-04-19T18:42:25Z",
"published" : "2019-12-26T18:22:36Z",
"aliases" : [ "CVE-2019-12418" ],
"summary" : "Insufficiently Protected Credentials in Apache Tomcat",
"details" : "When Apache Tomcat 9.0.0.M1 to 9.0.28, 8.5.0 to 8.5.47, 7.0.0 and 7.0.97 is configured with the JMX Remote Lifecycle Listener, a local attacker without access to the Tomcat process or configuration files is able to manipulate the RMI registry to perform a man-in-the-middle attack to capture user names and passwords used to access the JMX interface. The attacker can then use these credentials to access the JMX interface and gain complete control over the Tomcat instance.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.0.99"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 7.0.98"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.5.49"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 8.5.48"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat.embed:tomcat-embed-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.0.29"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-12418"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2020/dsa-4680"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2019/dsa-4596"
}, {
"type" : "WEB",
"url" : "https://usn.ubuntu.com/4251-1"
}, {
"type" : "WEB",
"url" : "https://support.f5.com/csp/article/K10107360?utm_source=f5support&utm_medium=RSS"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20200107-0001"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202003-43"
}, {
"type" : "WEB",
"url" : "https://seclists.org/bugtraq/2019/Dec/43"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/03/msg00029.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2020/01/msg00024.html"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/raba0fabaf4d56d4325ab2aca8814f0b30a237ab83d8106b115ee279a@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d@%3Cdev.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/43530b91506e2e0c11cfbe691173f5df8c48f51b98262426d7493b67%40%3Cannounce.tomcat.apache.org%3E"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00013.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-522" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-12-26T18:22:10Z",
"nvd_published_at" : "2019-12-23T18:15:00Z"
}
}