CVE-2019-1010260: Ktlint core Ktlint-core Vulnerability
HIGHCVE-2019-1010260 is a HIGH (CVSS 8.1) ktlint-core vulnerability (CWE-319: Cleartext Transmission of Sensitive Information) affecting Ktlint core libraries in the Maven ecosystem. The issue involves ktlint-core. Remediation is available by upgrading affected packages to version 0.30.0.
CVE-2019-1010260 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-1010260
To remediate this vulnerability, upgrade all affected Ktlint core 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>com.github.shyiko.ktlint</groupId>
<artifactId>ktlint-core</artifactId>
<version>0.30.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.github.shyiko.ktlint
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-1010260, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.github.shyiko.ktlint
Analyze the terminal output to locate any version of Ktlint core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.30.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.github.shyiko.ktlint 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-319: Cleartext Transmission of Sensitive Information, where the product transmits sensitive or security-critical data in cleartext in a communication channel that can be sniffed by unauthorized actors. In Ktlint core, 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-1010260 Affected Ktlint core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.github.shyiko.ktlint:ktlint-core
|
Maven |
< 0.30.0
|
0.30.0
|
References
Frequently Asked Questions
What is CVE-2019-1010260?
Which Ktlint core versions are affected?
What version fixes CVE-2019-1010260?
Is ktlint-core affected?
What is the CVSS score of CVE-2019-1010260?
What CWE is associated with CVE-2019-1010260?
How can I check Maven dependencies for CVE-2019-1010260?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r8h9-hq9c-2p5c",
"modified" : "2021-09-17T14:43:23Z",
"published" : "2019-04-08T15:18:54Z",
"aliases" : [ "CVE-2019-1010260" ],
"summary" : "High severity vulnerability that affects com.github.shyiko.ktlint:ktlint-core",
"details" : "Using ktlint to download and execute custom rulesets can result in arbitrary code execution as the served jars can be compromised by a MITM. This attack is exploitable via Man in the Middle of the HTTP connection to the artifact servers. This vulnerability appears to have been fixed in 0.30.0 and later; after commit 5e547b287d6c260d328a2cb658dbe6b7a7ff2261.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.github.shyiko.ktlint:ktlint-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.30.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1010260"
}, {
"type" : "WEB",
"url" : "https://github.com/shyiko/ktlint/pull/332"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-r8h9-hq9c-2p5c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/shyiko/ktlint"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-319" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:54:05Z",
"nvd_published_at" : null
}
}