Skip to content
FendixDocumentationDocs

.fendix.yaml · SEC-001 · SARIF

Current release v3.7.0
CheckStablev3.7.0

Command injection: Runtime.exec / ProcessBuilder with a concatenated argument

Command injection: Runtime.exec / ProcessBuilder with a concatenated argument: an injection check run by the textscan analyzer.

On this page
JAVA_EXEC_COMMAND_INJECTION
Analyzer
textscan
Category
Injection
Default severity
HIGH
CWE
CWE-78
Execution
Passive
Authentication
Not required
Applicability
java
Availability
stable

What it detects

Command injection: Runtime.exec / ProcessBuilder with a concatenated argument: an injection check run by the textscan analyzer.

Evidence

The matching source path, line, and bounded code observation produced by the native rule.

Remediation

Pass the command + args as a String[] / List<String> of literals; never build a shell string from user input. If a shell is unavoidable, validate against an allowlist.

Limitations

This check is limited to the applicability and evidence delivered by textscan. Review the evidence in context; a match is a finding input, while confidence and policy determine its disposition.

Analyzer Registry · Findings and release decisions · Policy and confidence

Remediation guidance: Remediation and fix verification · Baselines and suppressions