This vulnerability exploits a fundamental mismatch between how GitPython models configuration names and how git's config parser actually interprets them. GitPython treats option names as inert identifiers — key-value pairs you set and retrieve. But git-config parses these names as active directive syntax where equals signs, whitespace, and hash symbols carry syntactic weight. When GitPython passes user-supplied input into this grammar without neutralizing those characters, it crosses a trust boundary its API never explicitly defined.

This is the same class as SQL injection or XSS, applied to configuration. The fix isn't just sanitizing equals signs — it's recognizing that config option names should be treated as directive fragments, not identifiers. The key architectural question is whether GitPython operates as a wrapper (passing data through to git with minimal transformation) or an abstraction (defining a domain model and controlling what the underlying tool receives). If it claims abstraction, it must validate and reject constructs it doesn't model. If it claims wrapper semantics, it must document that callers are responsible for directive-syntax awareness.

The persistence mechanism deserves emphasis. The attack doesn't require the attacker to control the process executing the next git operation — only that someone runs a git operation afterward. In CI/CD pipelines pulling from shared repositories, this converts repository compromise into supply chain contamination. One injection propagates trigger conditions forward into every downstream pipeline that clones or pulls from that repo. The blast radius in automation is categorically worse than interactive use because the 'next git operation' is deterministic and often privileged.

Note that an option-name validator already existed in the codebase. This is significant: the failure wasn't ignorance of the trust boundary, but a validator built on the same flawed 'key-value identifier' model as the rest of the API. Defensive code written with partial understanding generates institutional confidence — reviewers see 'validation exists' and move on. The fix needs to include a documented model of what 'config option name' actually means in GitPython's contract, so future reviewers don't trust a validator that enforces the wrong definition.

Audit deprecated config methods with equal rigor. Stable, boring code doesn't receive adversarial review — it's the sediment layer where security assumptions fossilize unexamined.