ADVISORIES

Vulnerability

CVE-2026-25232

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.

4 advisories report this vulnerability, across 2 ecosystems.

High severity All Go 2openSUSE 2

Advisories

  • GHSA-2c6v-8r3v-gh6p

    Gogs has a Protected Branch Deletion Bypass in Web Interface

    High CVE-2026-25232 Go Updated 23 February 2026
  • GO-2026-4498

    Gogs has a Protected Branch Deletion Bypass in Web Interface in gogs.io/gogs

    CVE-2026-25232 Go Updated 23 February 2026
  • SUSE-SU-2026:0757-1

    Security update for govulncheck-vulndb

    CVE-2017-18873CVE-2017-18903CVE-2017-18906CVE-2017-18907 openSUSE Updated 4 March 2026
  • openSUSE-SU-2026:21483-1

    Security update for govulncheck-vulndb

    Known exploited CVE-2016-11063CVE-2016-11066CVE-2016-11067CVE-2016-11068 openSUSE Updated 31 July 2026

References