You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AST4 recommends shell=False when the code already uses it #670
A fixed argument-vector call with shell=False, an input-concatenated shell command and an unknown caller receive the same generic subprocess finding. The generic explanation suggests injection, and its remediation recommends shell=False even when that mode is already used.
The fixed-argv detector probe emitted MEDIUM AST4 for this scanner input:
The code does launch a process, but the finding does not show an injection path and recommends a change already present in the code.
Expected behavior
Describe the execution mode and any unknown input accurately. Distinguish fixed argv from untrusted shell strings while still detecting dangerous executables invoked with literal arguments.
Correct the explanation and remediation under the existing scoring policy, and keep genuine process-execution risks visible.
Related: #326 discusses source-surface information; #644 includes a separate code-loading risk. This issue covers the AST4 explanation and remediation.
Implementation is proposed in the open PR #701. It makes subprocess guidance reflect fixed argv, dynamic input, and actual shell mode without changing detection or scoring. Keeping this issue open until the PR is accepted and merged.
Activity
rng1995 commentedon Oct 4, 2026
Implementation is proposed in the open PR #701. It makes subprocess guidance reflect fixed argv, dynamic input, and actual shell mode without changing detection or scoring. Keeping this issue open until the PR is accepted and merged.
PR-state snapshot checked on 2026-10-04:
Keeping this issue open: the relevant implementation is not merged. Check/review status is a point-in-time snapshot, not a claim of merge readiness.