Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.command-injection.runtime-exec

An OS command is executed from a dynamically built string or through a shell (command injection).

Last updated:

Suite: Security

java

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/java.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.