vetkit.kotlin.command-injection.runtime-exec
An OS command is executed from a dynamically built string or through a shell (command injection).
Last updated:
Suite: Security
kotlin
An OS command is executed from a dynamically built string or through a shell (command injection).
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use ProcessBuilder with a fixed executable and separate, validated arguments; never pass through sh -c.
References
Source: packages/engine/rules/sast/kotlin.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.