{"id":"CVE-2026-25232","published":"2026-02-19T02:25:34Z","modified":"2026-02-19T17:44:52Z","title":"Gogs has a Protected Branch Deletion Bypass in Web Interface","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00474,"percentile":0.41913,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8124","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/7b7e38c88007a7c482dbf31efff896185fd9b79c","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":8.38},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-18","earliestUrl":"https://github.com/H1sok444/CVE-2026-25232-PoC","repos":[{"name":"H1sok444/CVE-2026-25232-PoC","url":"https://github.com/H1sok444/CVE-2026-25232-PoC","stars":1,"created":"2026-04-18"}]},"first":{"date":"2026-04-18","source":"PoC-in-GitHub","url":"https://github.com/H1sok444/CVE-2026-25232-PoC"},"provenance":"source"},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-19T17:04:55.043252Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.1","all versions"],"patched":["0.14.1"],"from":["GHSA-2c6v-8r3v-gh6p","GO-2026-4498"],"provenance":"source"}],"summary":{"text":"Gogs, the open source self-hosted Git service, has an access control flaw in the web interface's branch deletion handling (DeleteBranchPost function) that lets a repository collaborator bypass branch protection. An attacker with Write permission to a repository that has protected branches, who can reach the Gogs web interface, can delete those protected branches, including the default branch, by sending a direct POST request, because the web deletion path does not trigger the Git hooks that enforce protection.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:27Z"},"euvd":{"id":"EUVD-2026-8121","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25120","published":"2026-02-19","fixed":"0.14.0","kev":false},{"cve":"CVE-2026-25229","published":"2026-02-19","fixed":"0.14.0","kev":false,"link":{"from":"CVE-2026-25229","to":"CVE-2026-25232","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.14.0","toFixed":"0.14.1","daysApart":0}]}},{"cve":"CVE-2026-52797","published":"2026-06-24","fixed":"0.14.0","kev":false},{"cve":"CVE-2026-25232","published":"2026-02-19","fixed":"0.14.1","kev":false},{"cve":"CVE-2026-25242","published":"2026-02-19","fixed":"0.14.1","kev":false},{"cve":"CVE-2026-25921","published":"2026-03-05","fixed":"0.14.2","kev":false,"link":{"from":"CVE-2026-25232","to":"CVE-2026-25921","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.14.1","toFixed":"0.14.2","daysApart":14}]}},{"cve":"CVE-2026-26022","published":"2026-03-05","fixed":"0.14.2","kev":false,"link":{"from":"CVE-2026-25232","to":"CVE-2026-26022","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.14.1","toFixed":"0.14.2","daysApart":14}]}},{"cve":"CVE-2026-26194","published":"2026-03-05","fixed":"0.14.2","kev":false,"link":{"from":"CVE-2026-25232","to":"CVE-2026-26194","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.14.1","toFixed":"0.14.2","daysApart":14}]}}],"package":"Go:gogs.io/gogs"}}