All vulnerabilities

Servers and applications

CVE-2026-25232

Protected branch bypass in web UI

Severity
High 7.1
Published
14 Feb 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.14.0, 0.14.1
Exploit chance
0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Take it down
CVSS vector
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
Also known as
GHSA-2c6v-8r3v-gh6p
Sources
NVD, Project advisories (GitHub)

Description

An access control bypass vulnerability in Gogs web interface 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 enables 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.

The DeleteBranchPost function performs the following checks when deleting a branch:

  • ✅ User authentication (reqSignIn)
  • ✅ Write permission check (reqRepoWriter)
  • ✅ Branch existence verification
  • ✅ CommitID matching (optional parameter)
  • ❌ Missing protected branch check
  • ❌ Missing default branch check
From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.14.1
GogsServers and applications · github:gogs/gogs
  • Every version before 0.14.0

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-25232
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-25232
  • GitHub Advisory Database https://github.com/advisories/GHSA-2c6v-8r3v-gh6p
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p