CVE-2026-52804

Gogs: Privilege Escalation via Collaboration Access Mode Validation

Published Jun 24, 2026 CVSS 4.0 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, a repository admin collaborator can escalate their privileges to owner-level access by exploiting an off-by-one error in the ChangeCollaborationAccessMode function. This vulnerability is fixed in 0.14.3.

Analysis

AI-generated

Technical impact

Gogs is a self‑hosted Git service. Prior to version 0.14.3, a repository admin collaborator may gain owner‑level access by exploiting an off‑by‑one error in the ChangeCollaborationAccessMode function. This flaw allows the attacker to bypass the validation that should prevent a collaborator from assigning their own permissions to the maximum level, thereby escalating privileges within the affected repository. The weakness is a classic example of an off‑by‑one error (CWE‑193) that enables unauthorized privilege escalation.

Affected Systems

The vulnerability affects the Gogs platform, specifically all installations running a version older than 0.14.3. Any hosting of a local Gogs instance that permits collaborators to manage permissions is at risk. The fix is incorporated in release 0.14.3, so anyone operating an earlier release must update.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score is not available, so the likelihood of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. The attack can be carried out by any collaborator with administrative privileges on a repository: the attacker performs the off‑by‑one mutation when changing the collaborator’s access mode, gaining owner rights over the repository. Because no network‑side component is required and the flaw is local to the application, the vector is likely local or web‑based through the Gogs UI, though this is inferred rather than explicitly stated in the description.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gogs to version 0.14.3 or newer, which contains the fix for the off‑by‑one vulnerability in ChangeCollaborationAccessMode.
  • Review and restrict collaborator permission assignments to ensure no unintended escalation paths remain.
  • Monitor for unauthorized permission changes and enforce role‑based controls to prevent similar flaws from persisting.

Generated by OpenCVE AI on June 24, 2026 at 21:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4565-r4x7-hg8j Gogs Vulnerable to Privilege Escalation via Collaboration Access Mode Validation
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gogs
Gogs gogs
Vendors & Products Gogs
Gogs gogs
Type Values Removed Values Added
Description Gogs is an open source self-hosted Git service. Prior to 0.14.3, a repository admin collaborator can escalate their privileges to owner-level access by exploiting an off-by-one error in the ChangeCollaborationAccessMode function. This vulnerability is fixed in 0.14.3.
Title Gogs: Privilege Escalation via Collaboration Access Mode Validation
Weaknesses CWE-193
References
Metrics cvssV4_0

{'score': 5.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 10:13 PM
Reserved
Jun 8, 2026, 6:02 PM
Status
Deferred
Published
Jun 24, 2026, 9:16 PM
Modified
Nov 3, 2026, 11:17 PM