CVE-2026-133113: Gogs Incorrect Authorization
Published 2026-11-19 · Updated 2026-11-19 · Source disclosure@vulncheck.com
Not known to be exploited · medium severity — apply the vendor fix or mitigation on your normal schedule.
What to do
- The advisory lists versions through 0.14.4 as affected and does not name a fixed release. Check the references below for a newer version of Gogs or a vendor mitigation.
- Until it is patched, restrict network access to Gogs and review which accounts can log in to it.
- Restrict access to the affected feature and review logs for use by accounts that should not have it.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Gogs | ≤ 0.14.4 | Not stated in the advisory |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker needs an ordinary low-privileged account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on integrity is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | Low | The attacker needs an ordinary low-privileged account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness: Incorrect Authorization
An authorization check exists but is wrong, so users can perform actions they should not be allowed to.
Classified as CWE-863.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/gogs/gogs/commit/089f089fa783f95b54a635b8ec9b3f498c2a5d12
- Patchhttps://github.com/gogs/gogs/commit/1651767a3e2c531ccf0af2141d691cfff8763e09
- Advisoryhttps://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm
- Advisoryhttps://www.vulncheck.com/advisories/gogs-through-0.14.4-protected-branch-allowlist-bypass-via-pull-request-merge
- Advisoryhttps://github.com/gogs/gogs/security/advisories/GHSA-8r2x-49gj-h6rm
- Referencehttps://github.com/gogs/gogs
- Referencehttps://github.com/gogs/gogs/blob/v0.14.4/internal/route/repo/pull.go#L401-L431