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.
Remediation
References
https://github.com/shyiko/ktlint/pull/332
Related Vulnerabilities
CVE-2020-7683 Vulnerability in npm package rollup-plugin-server
CVE-2020-28052 Vulnerability in maven package org.bouncycastle:bcprov-jdk15on
CVE-2023-40787 Vulnerability in maven package org.springblade:blade-core-tool
CVE-2018-3748 Vulnerability in npm package glance
CVE-2021-32859 Vulnerability in maven package org.webjars.npm:github-com-baremetrics-calendar