CVE-2026-133113 Details
Description
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.
An authorization bypass vulnerability has been identified in Gogs versions through 0.14.4. This vulnerability allows collaborators with write access to merge pull requests into protected branches, bypassing established branch protection rules. The issue arises because the 'MergePullRequest' function does not enforce branch protection checks and the 'PullRequest.Merge' method fails to include necessary hook environment variables. As a result, attackers can exploit this vulnerability to merge commits into branches that are supposed to be restricted to allowlisted users.
Users can update to Gogs version 0.15.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 19, 2026CISA-ADP
Assessed Nov 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm | CISA-ADP | AdvisoryExploitTechnical AnalysisVendor |
| https://github.com/gogs/gogs | [email protected] | Vendor |
| https://github.com/gogs/gogs/blob/v0.14.4/internal/route/repo/pull.go#L401-L431 | [email protected] | Source CodeVendor |
| https://github.com/gogs/gogs/commit/089f089fa783f95b54a635b8ec9b3f498c2a5d12 | [email protected] | Source CodeVendor |
| https://github.com/gogs/gogs/commit/1651767a3e2c531ccf0af2141d691cfff8763e09 | [email protected] | Source CodeVendor |
| https://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm | [email protected] | AdvisoryExploitTechnical AnalysisVendor |
| https://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gogs | <= 0.14.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 19, 2026 | CVE Modified | CISA-ADP |
| Nov 19, 2026 | New CVE Received | [email protected] |
Volerion