{"answers":{"affected":"2 open source packages ship an affected version, including com.github.shyiko.ktlint:ktlint-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-1010260 in the wild and no public exploit code.","fix":"Upgrade com.github.shyiko.ktlint:ktlint-core to 0.30.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2019-1010260 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2019-1010260 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.github.shyiko.ktlint:ktlint-core (Maven): affected all versions; fixed in 0.30.0\n- com.github.shyiko.ktlint:ktlint-core (Maven): affected all versions; fixed in 0.30.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-1010260/ (Markdown: https://insights.sbomify.com/CVE-2019-1010260/index.md)","id":"CVE-2019-1010260","markdown":"https://insights.sbomify.com/CVE-2019-1010260/index.md","name":"CVE-2019-1010260","record":{"aliases":["GHSA-r8h9-hq9c-2p5c"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Kotlin linter tool","requires_auth":"none","summary":"Attackers can execute arbitrary code via Man-in-the-Middle attacks when ktlint downloads custom rulesets over HTTP.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"dwf","cpe":[{"product":"ktlint","vendor":"ktlint_project"}],"cvss":{"score":8.1,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"High severity vulnerability that affects com.github.shyiko.ktlint:ktlint-core","id":"CVE-2019-1010260","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2019"},"n_packages":2,"n_references":1,"next":{"headline":"Gitea XSS Vulnerability","id":"CVE-2019-1010261"},"packages":[{"ecosystem":"Maven","fixed":["0.30.0"],"introduced":["0"],"last_affected":[],"package":"com.github.shyiko.ktlint:ktlint-core","purl":null,"source":"GHSA-r8h9-hq9c-2p5c"},{"ecosystem":"Maven","fixed":["0.30.0"],"introduced":["0"],"last_affected":[],"package":"com.github.shyiko.ktlint:ktlint-core","purl":"pkg:maven/com.github.shyiko.ktlint/ktlint-core","source":"GHSA-r8h9-hq9c-2p5c"}],"prev":{"headline":"SaltStack Salt SQL Injection vulnerability in mysql.user_chpass function","id":"CVE-2019-1010259"},"products":["ktlint"],"published":"2019-04-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["ktlint"]},"summary":"Attackers can execute arbitrary code via Man-in-the-Middle attacks when ktlint downloads custom rulesets over HTTP.","url":"https://insights.sbomify.com/CVE-2019-1010260/"}