medium5.5
CVE-2026-52804
Gogs Vulnerable to Privilege Escalation via Collaboration Access Mode Validation
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | gogs.io/gogs | < 0.14.3 | 0.14.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-4565-r4x7-hg8j
- https://github.com/gogs/gogs/security/advisories/GHSA-4565-r4x7-hg8j
- https://github.com/gogs/gogs/pull/8227
- https://github.com/gogs/gogs/commit/1fdc9cc28e159135cfa4d6b11ecd5daa0f8ce22b
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- https://nvd.nist.gov/vuln/detail/CVE-2026-52804