CVE-2026-23632
MEDIUM 6.5CVSS 3.1Gogs user can update repository content with read-only permission
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.
- Published
- 6 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-862CWE-863
- Also known as
- GHSA-5qhx-gwfj-6jqrGO-2026-4450
- Sources
- NVDJSONOSV GHSA-5qhx-gwfj-6jqrJSONOSV GO-2026-4450JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.13.4 | 0.13.4 |
| OSV | Go | gogs.io/gogs | < 0.13.4 | 0.13.4 |
| OSV | Go | gogs.io/gogs | all versions |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-5qhx-gwfj-6jqr · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-23632 · ADVISORY
- https://github.com/gogs/gogs/pull/8102/commits/b6afcdb2e8d291e2adaaf6a8b7f88d240606515d · WEB
- https://github.com/gogs/gogs · PACKAGE
- https://github.com/gogs/gogs/releases/tag/v0.13.4 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Feb 2026)