# CVE-2026-23632: Gogs user can update repository content with read-only permission

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-02-06T17:43:45.757Z
- Modified: 2026-06-17T10:21:52.207Z
- Also known as: GHSA-5qhx-gwfj-6jqr, GO-2026-4450
- Weaknesses: CWE-862, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.0+dev; < 0.13.4; before 0.13.4
- gogs.io/gogs (Go): before 0.13.4; all versions

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `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> (advisory, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-23632](https://www.cve.org/CVERecord?id=CVE-2026-23632), CVE Terms of Use, modified 2026-02-06
- GitHub Advisory Database: [GHSA-5qhx-gwfj-6jqr](https://github.com/advisories/GHSA-5qhx-gwfj-6jqr), CC-BY-4.0, modified 2026-02-19
- Go Vulnerability Database: [GO-2026-4450](https://pkg.go.dev/vuln/GO-2026-4450), CC-BY-4.0, modified 2026-02-19
- NVD: [CVE-2026-23632](https://nvd.nist.gov/vuln/detail/CVE-2026-23632), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23632 · Whole record: https://cve.day/CVE-2026-23632.json · Rebuilt by cve.day 2026-11-25T22:59:13.558Z
