Live threats

All CVEs / Ktlint Project

CVE-2019-1010260Ktlint Project Ktlint

High 8.1 No auth needed

Priority
64
CVSS 3.0
8.1
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Apr 2, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-319
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ktlint.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.github.shyiko.ktlint:ktlint-core < 0.30.0 0.30.0 —

Per OSV / GitHub Advisories (GHSA-r8h9-hq9c-2p5c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ktlint_projectktlint< 0.30.0

Official sources

References

Links published by the sources. Open them with care.