vetkit.swift.command-injection.shell-interpolation
A shell is started with -c and a command line built from interpolation or concatenation. Shell metacharacters in the interpolated value run arbitrary commands.
Last updated:
Suite: Security
swift
A shell is started with -c and a command line built from interpolation or concatenation. Shell metacharacters in the interpolated value run arbitrary commands.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Set executableURL to the program itself and pass each value as a separate element of arguments; do not go through sh -c.
References
Source: packages/engine/rules/sast/swift.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.