All vulnerabilities

Servers and applications

CVE-2026-52804

Privilege Escalation via Collaboration Access Mode Validation

Severity
Medium 5.5
Published
19 Jun 2026
Last changed
3 Nov 2026
Added to UpHeron
3 Nov 2026
Fixed in
0.14.3
Exploit chance
0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-193
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Change data · Take it down
CVSS 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
Also known as
GHSA-4565-r4x7-hg8j
Sources
CVE Program, Project advisories (GitHub)

Description

A repository admin collaborator can escalate their privileges to owner-level access by exploiting an off-by-one error in the ChangeCollaborationAccessMode function.

A repository admin collaborator (AccessModeAdmin = 3) can escalate to owner-level access (AccessModeOwner = 4), gaining the ability to:

  • Delete the repository
  • Transfer repository ownership to another user
  • Erase wiki data
  • Perform all other owner-only operations

The access table is also updated (line 181), so the escalated permissions persist across sessions.

The API route at internal/route/api/v1/repo_collaborators.go:46 uses ParseAccessMode() which only returns Read, Write, or Admin - never Owner. The API endpoint is not affected.

From gogs/gogs's security advisory.

Affected software

SoftwareAffected versions
GogsServers and applications · cna:gogs|gogs
  • Every version before 0.14.3
GogsServers and applications · github:gogs/gogs
  • Every version before 0.14.3

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References