Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2026-25232

CVE-2026-25232: Gogs has a Protected Branch Deletion Bypass in Web Interface

February 17, 2026 (updated February 19, 2026)

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.

References

  • github.com/advisories/GHSA-2c6v-8r3v-gh6p
  • github.com/gogs/gogs
  • github.com/gogs/gogs/commit/7b7e38c88007a7c482dbf31efff896185fd9b79c
  • github.com/gogs/gogs/pull/8124
  • github.com/gogs/gogs/releases/tag/v0.14.1
  • github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p
  • nvd.nist.gov/vuln/detail/CVE-2026-25232

Code Behaviors & Features

Detect and mitigate CVE-2026-25232 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.14.1

Fixed versions

  • 0.14.1

Solution

Upgrade to version 0.14.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/gogs.io/gogs/CVE-2026-25232.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:18:57 +0000.