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.
Published: 2026-06-24
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 25 Jun 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 25 Jun 2026 06:00:00 +0000

Type Values Removed Values Added
First Time appeared Gogs
Gogs gogs
Vendors & Products Gogs
Gogs gogs

Wed, 24 Jun 2026 20:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-26T03:55:45.598Z

Reserved: 2026-06-08T18:02:19.731Z

Link: CVE-2026-52804

cve-icon Vulnrichment

Updated: 2026-06-25T20:11:07.016Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T05:45:02Z

Weaknesses