CVE-2026-52799 Details
Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, GET /attachments/:uuid returns the raw attachment file without verifying whether the requester has view permission for the associated Issue/Comment/Release or the repository. In a test environment with REQUIRE_SIGNIN_VIEW = false, we confirmed that an unauthenticated user can download attachments belonging to a private repository. This vulnerability is fixed in 0.14.3.
A vulnerability in Gogs prior to version 0.14.3 allows unauthenticated users to download attachments from private repositories. The issue arises because the attachment download endpoint, `GET /attachments/:uuid`, does not verify whether the requester has the appropriate permissions to view the associated Issue, Comment, Release, or the repository itself. In environments where `REQUIRE_SIGNIN_VIEW` is set to false, this flaw can be exploited to access private files. Even with `REQUIRE_SIGNIN_VIEW` enabled, the vulnerability could still be exploited by logged-in users who lack permission for the target repository, as the endpoint does not check repository-level access.
Users can upgrade to Gogs version 0.14.3, 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-p9f5-h3rx-j5qw | CISA-ADP | AdvisoryRemedyVendor |
| https://github.com/gogs/gogs/releases/tag/v0.14.3 | [email protected] | Release NotesVendor |
| https://github.com/gogs/gogs/security/advisories/GHSA-p9f5-h3rx-j5qw | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key | [email protected] |
| CWE-862 | Missing Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gogs | <= 0.14.2 (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