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.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-639 — CWE-639: Authorization Bypass Through User-Controlled Key
- CWE-862 — CWE-862: Missing Authorization
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | < 0.14.3 |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-p9f5-h3rx-j5qw (x_refsource_CONFIRM)
- https://github.com/gogs/gogs/releases/tag/v0.14.3 (x_refsource_MISC)
Generated from the official CVE List on 25 Jun 2026 10:14 UTC.