CVE-2019-1010260 High severity vulnerability that affects com.github.shyiko.ktlint:ktlint-core
Attackers can execute arbitrary code via Man-in-the-Middle attacks when ktlint downloads custom rulesets over HTTP.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-1010260?
CVE-2019-1010260 is a high-severity code injection vulnerability in ktlint, published on 2 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-319
Which versions are affected by CVE-2019-1010260?
2 open source packages ship an affected version, including com.github.shyiko.ktlint:ktlint-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.github.shyiko.ktlint:ktlint-core Maven | All versions | 0.30.0 |
com.github.shyiko.ktlint:ktlint-core Maven | All versions | 0.30.0 |
Products include Ktlint Project Ktlint.
How do I fix CVE-2019-1010260?
Upgrade com.github.shyiko.ktlint:ktlint-core to 0.30.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-1010260 being exploited?
There is no known exploitation of CVE-2019-1010260 in the wild and no public exploit code.
Sources
Also known as GHSA-r8h9-hq9c-2p5c.