{"cve":"CVE-2026-25232","nvd":{"published":"2026-02-19T07:17:45.520","modified":"2026-06-17T10:24:20.827","status":"Analyzed","description":"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.","cvss_v4":{"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","score":7.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-863"],"references":["https://github.com/gogs/gogs/commit/7b7e38c88007a7c482dbf31efff896185fd9b79c","https://github.com/gogs/gogs/pull/8124","https://github.com/gogs/gogs/releases/tag/v0.14.1","https://github.com/gogs/gogs/security/advisories/GHSA-2c6v-8r3v-gh6p"],"products":["gogs:gogs"],"source":"nvd","synced_at":"2026-10-19T22:23:35.260773158+00:00"},"epss":{"cve":"CVE-2026-25232","score":0.00481,"percentile":0.41539,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2c6v-8r3v-gh6p","url":"https://osv.dev/vulnerability/GHSA-2c6v-8r3v-gh6p","summary":"Gogs has a Protected Branch Deletion Bypass in Web Interface","modified":"2026-02-23T19:41:08.669374Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.14.1"],"fixed":["0.14.1"]}]},{"id":"GO-2026-4498","url":"https://osv.dev/vulnerability/GO-2026-4498","summary":"Gogs has a Protected Branch Deletion Bypass in Web Interface in gogs.io/gogs","modified":"2026-02-23T19:41:08.669374Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}