CVE-2026-25232 json
Gogs has a Protected Branch Deletion Bypass in Web Interface
published 8mo ago modified 4mo ago also GHSA-2c6v-8r3v-gh6p , GO-2026-4498 , EUVD-2026-8121
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go gogs.io/gogs 0.14.1
- gogs gogs 0.14.1
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260226T182644-150000.1.149.1
suse advisories SUSE-SU-2026:0757-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
- github.com/gogs/gogs@7b7e38c commit
- github.com/gogs/gogs#8124 pull request
- github.com/gogs/gogs/releases/tag/v0.14.1 release
Is CVE-2026-25232 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 8mo ago
Exploit prediction
0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 7.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| CNA | 4.0 | 7.1 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.14.1 all versions |
0.14.1 |
Affected products
- gogs gogs
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
References
-
github.com
/gogs/gogs/pull/8124
web, issue-tracking
-
github.com
/gogs/gogs/commit/7b7e38c88007a7c482dbf31efff896185fd9b79c
web, patch
-
github.com
/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p
web, exploit, vendor-advisory, advisory
-
github.com
/gogs/gogs/releases/tag/v0.14.1
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-25232
advisory
-
github.com
/gogs/gogs
package
Sources
- CVE List CVE-2026-25232
- GitHub Advisory GHSA-2c6v-8r3v-gh6p
- NVD CVE-2026-25232
- OSV GO-2026-4498
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.