Vulnerability advisory
CVE-2026-52804
Gogs: Privilege Escalation via Collaboration Access Mode Validation
Also known as GHSA-4565-r4x7-hg8jGO-2026-5110
Severity
- CVSS 4.0
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
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 | 3ba8aca90e17e5410b7e8b227c9f29256ac3e875 |
| Not specified | 1fdc9cc28e159135cfa4d6b11ecd5daa0f8ce22b |
Also listed as affected (59)
| |
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.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52804.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-4565-r4x7-hg8j ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-52804 ↗
- Fixgithub.com/gogs/gogs/commit/1fdc9cc28e159135cfa4d6b11ecd5daa0f8ce22b ↗
- Fixgithub.com/gogs/gogs/pull/8227 ↗