CVE-2026-25232: Gogs - Access Control Bypass
- Cve: CVE-2026-25232
- Name: Gogs - Access Control Bypass
- Description: Gogs is an open source self-hosted Git service. Versions 0.13.4 and below have an access control bypass vulnerability which allows any repository collaborator with Write permissions to delete protected branches (including the default branch) by sending a direct POST request, completely bypassing the branch protection mechanism. This vulnerability in the DeleteBranchPost function eenables privilege escalation from Write to Admin level, allowing low-privilege users to perform dangerous operations that should be restricted to administrators only. Although Git Hook layer correctly prevents protected branch deletion via SSH push, the web interface deletion operation does not trigger Git Hooks, resulting in complete bypass of protection mechanisms. In oder to exploit this vulnerability, attackers must have write permissions to the target repository, protected branches configured to the target repository and access to the Gogs web interface. This issue has been fixed in version 0.14.1.
- Impact: Attackers with write permissions can escalate privileges to Admin by deleting protected branches, risking repository integrity and control.
- Remediation: Upgrade to version 0.14.1 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker must have write permissions and access to the Gogs web interface with protected branches configured
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00474
- Epss percentile: 0.41833
- Assignee: [email protected]
- Published at: 2026-02-19T07:17:45Z
- Age in days: 278
- Modified at: 2026-06-17T10:24:20Z
- Patch available: yes
- Public exploits total: 2
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25232
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-863 | Incorrect Authorization |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p | nvd | 2026-02-19 |
| https://github.com/H1sok444/CVE-2026-25232-PoC | poc-in-github | 2026-04-18 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/gogs/gogs/commit/7b7e38c88007a7c482dbf31efff896185fd9b79c | Patch |
| https://github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p | Exploit, Vendor Advisory |
| https://github.com/gogs/gogs/pull/8124 | Issue Tracking |
| https://github.com/gogs/gogs/releases/tag/v0.14.1 | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gogs:gogs | < 0.14.1 | no | nvd | /v1/products/gogs/gogs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| gogs/gogs | commit, fix, package, pull, releases, security_advisory | yes | /v1/repositories/gogs/gogs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2026-02-19
- Remote: yes
- Authentication required: yes
- Exposed hosts: 174004
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports