Vulnerability · Published Feb 6, 2026 · Assigned by GitHub_M
CVE-2026-23632Gogs user can update repository content with read-only permission
Medium 6.5
In plain English
A medium-severity missing authorization in gogs from gogs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, the endpoint "PUT /repos/:owner/:repo/contents/*" does not require write permissions and allows access with read permission only via repoAssignment(). After passing the permission check, PutContents() invokes UpdateRepoFile(), which results in commit creation and the execution of git push. As a result, a token with read-only permission can be used to modify repository contents. This issue has been patched in versions 0.13.4 and 0.14.0+dev.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.13.4 | GHSA-5qhx-gwfj-6jqr |
| Go | gogs.io/gogs | no fix listed | GO-2026-4450 |
Affected products (as reported)
Weakness: CWE-862, CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-5qhx-gwfj-6jqr x_refsource_CONFIRM