gogs.io/gogs
Affected
- introduced
0, fixed0.13.4(semver)
Fixed versions
0.13.4
Fix
- Fixed version
0.13.4go get gogs.io/[email protected]
Advisory
Also known as: CVE-2026-23632, GO-2026-4450
Gogs user can update repository content with read-only permission
Vulnerability Description
The endpointPUT /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:
git pushAs a result, a token with read-only permission can be used to modify repository contents.
---
Attack Prerequisites
---
Attack Scenario
PUT /contents request to update an arbitrary file---
Potential Impact
Medium Basis: The source's own band: MODERATE
0, fixed 0.13.4 (semver)0.13.4
0.13.4go get gogs.io/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0