CVE-2026-97662: Python Git Subprocess Ref Argument Injection

The value $ARG reaches a git command line before the `--` end-of-options separator without validation. Git parses any value whose first character is `-` as an option rather than a revision, so an attacker-controlled ref (e.g. `--output=/etc/cron.d/x`) can make git create, overwrite, or truncate an arbitrary file outside the intended workspace directory. Vali

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-97662-python-git-subprocess-ref-argument-injection --engine opengrep

Description

The value $ARG reaches a git command line before the `--` end-of-options separator without validation. Git parses any value whose first character is `-` as an option rather than a revision, so an attacker-controlled ref (e.g. `--output=/etc/cron.d/x`) can make git create, overwrite, or truncate an arbitrary file outside the intended workspace directory. Vali