Skip to main content
← All vulnerabilities
CVE-2026-23632GO-2026-4450GHSA-5QHX-GWFJ-6JQR

Gogs user can update repository content with read-only permission

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.14.0+dev, 0.13.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • gogs gogs

    fixed in 0.14.0+dev; fixed in 0.13.4

  • gogs.io/gogsGo

    All versions

  • gogs.io/gogsGo

    fixed in 0.13.4

References 1

GitHub · gogs/gogs