Security Resilience

CVE-2026-25232

Access Control in Gogs ≤ 0.14.1

Public PoCAccess Control
Published
19 February 2026
Modified
19 February 2026
Patch / advisory
CVSS Score v4 7.1
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0073 50th percentile
Risk Priority 37 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-25232 is a high-severity Incorrect Authorization (CWE-863) vulnerability in Gogs. Its CVSS base score is 7.1 (High).

Operationally, ranked in the top 50% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-24 (Access Control Decisions) and AC-25 (Reference Monitor) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-25232 is an access control bypass vulnerability in Gogs, an open-source self-hosted Git service. It affects versions 0.13.4 and below, specifically in the DeleteBranchPost function of the web interface. The flaw allows users with Write permissions on a repository to delete protected branches, including the default branch, by sending a direct POST request, circumventing the branch protection mechanism. While Git Hooks prevent such deletions via SSH pushes, the web interface operations do not trigger these hooks, enabling the bypass. This issue is classified under CWE-863 (Incorrect Authorization) with a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

An attacker with Write permissions on the target repository, where protected branches are configured, can exploit this vulnerability remotely over the network via the Gogs web interface. By crafting and sending a POST request to the DeleteBranchPost endpoint, they bypass protections and delete protected branches, effectively escalating privileges from Write to Admin-level capabilities. This allows low-privilege collaborators to perform destructive operations restricted to administrators, such as removing critical branches without authentication checks.

The vulnerability has been addressed in Gogs version 0.14.1, as detailed in the project's security advisory (GHSA-2c6v-8r3v-gh6p), release notes, associated pull request (#8124), and fixing commit (7b7e38c88007a7c482dbf31efff896185fd9b79c). Security practitioners should upgrade to 0.14.1 or later and review repository permissions to limit Write access where possible.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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,…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-23632Same product: Gogs Gogs
CVE-2024-44625Same product: Gogs Gogs
CVE-2022-2024Same product: Gogs Gogs
CVE-2026-25229Same product: Gogs Gogs
CVE-2024-39933Same product: Gogs Gogs
CVE-2026-22592Same product: Gogs Gogs
CVE-2024-56731Same product: Gogs Gogs
CVE-2024-39932Same product: Gogs Gogs
CVE-2025-64111Same product: Gogs Gogs
CVE-2022-1993Same product: Gogs Gogs

Affected Assets

gogs
gogs
≤ 0.14.1

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

AC-3 directly requires correct enforcement of authorization decisions on every access request, structurally preventing incorrect checks.

AC-24 ensures access-control decisions are made and applied consistently, reducing the chance of an incorrect authorization result.

A reference monitor that is always invoked and tamper-proof forces every authorization decision through a verified, correct path.

Least-privilege assignments shrink the set of authorizations that must be checked correctly, limiting exposure to flawed checks.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

A.8.3's access restriction mechanisms, including granular per-user and per-identity controls, directly enforce correct authorization checks, preventing exploitation of incorrect authorization flaws.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-863, a class-level weakness, and none of its children carries one either.

References