PT-2026-6756 · Gogs · Gogs
Odgrso
·
Published
2026-02-06
·
Updated
2026-03-03
·
CVE-2026-23632
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Gogs versions prior to 0.13.4
Description
Gogs, a self-hosted Git service, has an issue where the API endpoint ''PUT /repos/:owner/:repo/contents/'' does not enforce write permissions correctly. It allows modification of repository contents using a token with only read permission. This occurs because the
repoAssignment() function does not adequately verify permissions before invoking PutContents(), which then calls UpdateRepoFile(), leading to commit creation and a git push operation. The username and password are not directly involved in this issue. The vulnerable parameter is the file path specified in the request to the ''PUT /repos/:owner/:repo/contents/'' endpoint.Recommendations
Update Gogs to version 0.13.4 or later.
Exploit
Fix
Incorrect Authorization
Missing Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gogs