The 9.9 CVSS score on this Gogs command injection vulnerability is technically accurate but practically misleading. Here's what actually matters for defenders managing self-hosted git infrastructure.
This is a git command construction vulnerability, not a git vulnerability. The 'Rebase before merging' feature in Gogs interpolates a user-controlled branch name directly into a git rebase command without shell escaping, enabling --exec flag injection. That's an implementation failure in how Gogs wraps git operations, not a flaw in git itself — and that distinction matters because it means similar injection patterns likely exist in other merge strategies or git operations Gogs performs.
The authenticated-user requirement is weaker than it appears. Many Gogs deployments enable self-registration, and even where they don't, credential stuffing and phishing make account compromise a low-friction first stage. Once an attacker has any valid account, they can create a malicious pull request and achieve full server-side code execution. The CVSS authenticated designation should not create false confidence.
What makes this interesting is the EPSS score of 0.05509 against the 9.9 CVSS. This gap reflects the reality of self-hosted software: no auto-update, fragmented adoption, and instances that stay vulnerable for years. A vulnerability that burns slowly across a fragmented user base with accumulated trust relationships is often worse than a critical vulnerability that clears quickly. Your Gogs instance isn't just a git server — it's a trust anchor holding deploy keys, webhook credentials, and CI secrets accumulated over its lifetime. When it eventually gets compromised, the blast radius includes everything that ever trusted code deployed through it.
For immediate action: audit your Gogs version (0.14.2 and below are vulnerable), disable self-registration if feasible, review who has access to create pull requests, and treat the branch-name input field as untrusted regardless of authentication status. The deeper question is architectural: if this was a surgical shell-escape fix rather than a refactor to use git libraries, assume similar injection patterns exist elsewhere in the codebase and plan a security review of git command construction paths.