CVE-2026-52795 Details
Description
Gogs is an open source self-hosted Git service. In 0.14.3 and earlier, any authenticated user can watch a private repository they have no access to, because the access check in the Watch API handler is inverted. The code checks if repoCtx.ViewerCanRead() (returns 404 when the user CAN read) instead of if !repoCtx.ViewerCanRead() (return 404 when the user CANNOT read). Once watching, the attacker's dashboard activity feed shows commit messages, branch names, issue titles, and PR details from the private repository. If email notifications are enabled, the attacker also receives emails containing issue and comment content.
An authorization bypass vulnerability has been identified in Gogs, an open-source self-hosted Git service, in versions through 0.14.3. The issue arises from an inverted access check in the Watch API handler, which allows any authenticated user to watch private repositories they do not have access to. Once a user starts watching a private repository, their dashboard activity feed is populated with commit messages, branch names, issue titles, and pull request details from that repository. Additionally, if email notifications are enabled, the user receives emails containing issue and comment content from the private repository.
Users can update to Gogs version 0.15.0+dev, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2026CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/gogs/gogs/commit/d61caa3676fde060d0c03ccf815851dddc7c67e0 | [email protected] | Source CodeVendor |
| https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gogs | <= 0.14.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 24, 2026 | New CVE Received | [email protected] |
Volerion