SG-073: Dangerous git env-var injection

Severity: HIGH

Setting GIT_EXTERNAL_DIFF / GIT_PAGER / GIT_EDITOR / GIT_SEQUENCE_EDITOR / GIT_SSH_COMMAND turns a benign git command into arbitrary RCE.

Fires when

Remediation

No safe remediation: a file that triggers this rule should be rejected, not patched. Read the flagged lines in the source before deciding.

Research