All rules →
Rules / Java
SHIELD-JAVA-002

OS Command Injection via Runtime.exec

criticalJavaCWE-78CVSS 9.8

What it detects

Runtime.getRuntime().exec called with a concatenated string permits command injection.

How to fix

Avoid shell invocation; pass a fixed command with an argument array and validate all inputs.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JAVA-002: OS Command Injection via Runtime.exec — Zennoxa Shield