Skip to content

fix: FAA identified Command injection Critical vulns - #1170

Open
jmadhur87 wants to merge 13 commits into
fortify:dev/v3.xfrom
jmadhur87:mjain6/FAAVulnFixCommandInjection
Open

jmadhur87 wants to merge 13 commits into
fortify:dev/v3.xfrom
jmadhur87:mjain6/FAAVulnFixCommandInjection

Conversation

@jmadhur87

@jmadhur87 jmadhur87 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
  • fcli-common-core: FcliCommandExecutorFactory can now run a list of arguments exactly as given, with no re-splitting. In that mode:
    • values starting with @ are not read as argument files;
    • positionals go after --;
    • argument values are kept out of debug logs.
  • fcli-common-action:
    • run.fcli gains optional args and positionals fields next to the existing cmd.
    • A new #action.copyParameterArgsFromGroup() helper returns separate arguments.
    • The action schema version goes from 2.10.0 to 2.11.0.
  • fcli-ai-assist (MCP): tool, query, paging and option values are passed as separate arguments. Query field names are validated and single quotes in query values are escaped.
  • Built-in actions setup-release, setup-appversion, bulkaudit, bulkaudit-sast and bulkaudit-dast use the new args/positionals. bulkaudit-dast uses the numeric version ID instead of app:version names.

@jmadhur87

Copy link
Copy Markdown
Contributor Author

@rsenden,
cmd: still re-parses an interpolated string, so a custom action that puts untrusted values in it can still inject fcli options. This is intentional. The impact is fcli option injection (Picocli, not an OS shell). This PR makes the args/positionals path safe and moves all built-in actions and MCP tools to it.
Who do we want to handle this?

  1. Keep as is, add a docs/javadoc warning on cmd and copyParametersFromGroup(), and track cmd deprecation separately (my suggestion).
  2. Also deprecate cmd and log a runtime warning for dynamic values (non-breaking, but noisier).
  3. Block quotes in cmd values (complete fix, but breaking)

@jmadhur87
jmadhur87 marked this pull request as ready for review November 17, 2026 10:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant