Gogs lets collaborators bypass protected branch allowlists via merge
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.
Summary
Gogs through 0.14.4 contains an incorrect authorization flaw (CWE-863). The MergePullRequest function skips branch protection checks, so a collaborator with write access can merge pull requests to add commits to branches restricted to allowlisted users.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
Gogs through 0.14.4 contains an authorization bypass vulnerability that allows collaborators with write access to push to protected branches by merging pull requests. Because MergePullRequest skips branch protection checks and PullRequest.Merge omits hook environment variables, attackers can merge commits into branches restricted to allowlisted users.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for Gogs.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Timeline
- 2026-11-19 Threatist record created from CVE-2026-133113
- 2026-11-19 Alias added: GHSA-8mv3-686h-7r46
- 2026-11-19 CISA SSVC decision points changed
References
Patch 2
More Gogs vulnerabilities
- TI-2025-07419 Symlink flaw in Gogs PutContents API lets attackers overwrite files KEVCVSS 4.0HIGH 8.7
- TI-2026-37922 Gogs: Path Traversal in organization name results in RCE through Git hooks CVSS 3.1CRITICAL 10.0
- TI-2022-01876 OS Command Injection in gogs/gogs CVSS 3.1CRITICAL 9.8
- TI-2022-01744 Remote Command Execution in gogs/gogs CVSS 3.1CRITICAL 10.0
- TI-2025-39562 Gogs's update .git/config file allows remote command execution CVSS 4.0CRITICAL 9.3
- TI-2026-20951 Gogs: Cross-repository LFS object overwrite via missing content hash verification CVSS 3.1CRITICAL 9.3
Sources
- CVE-2026-133113 · CVE Program
- CVE-2026-133113 · NVD
- FIRST EPSS
- GHSA-8mv3-686h-7r46 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences