Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
gogs gogs
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Gogs(Go Git Service)是Gogs团队的一个基于Go语言的自助Git托管服务,它支持创建、迁移公开/私有仓库,添加、删除仓库协作者等。 Gogs 0.13.4及之前版本存在安全漏洞,该漏洞源于访问控制绕过,可能导致低权限用户删除受保护分支。

AI Predicted 8.8 Difficulty: Easy EPSS 0.44% · P36
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-25232

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Gogs has a Protected Branch Deletion Bypass in Web Interface
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
Source: CVE Program / CVE List V5
Vulnerability Title
Gogs 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Gogs(Go Git Service)是Gogs团队的一个基于Go语言的自助Git托管服务,它支持创建、迁移公开/私有仓库,添加、删除仓库协作者等。 Gogs 0.13.4及之前版本存在安全漏洞,该漏洞源于访问控制绕过,可能导致低权限用户删除受保护分支。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gogs gogs < 0.14.1 -

II. Public POCs for CVE-2026-25232

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-25232

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-25232 (1)

Same Patch Batch · gogs · 2026-02-19 · 4 CVEs total

CVE-2026-25242 Gogs allows unauthenticated file uploads
CVE-2026-25229 Gogs Authorization Bypass Allows Cross-Repository Label Modification
CVE-2026-25120 Gogs Allows Cross-Repository Comment Deletion via DeleteComment

IV. Related Vulnerabilities

V. Comments for CVE-2026-25232

No comments yet


Leave a comment