PT-2026-6756 · Gogs · Gogs

·

CVE-2026-23632

·

Published

2026-02-06

·

Updated

2026-07-30

CVSS v3.1

6.5

Medium

VectorAV: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

DoS

Incorrect Authorization

Missing Authorization

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-23632
GHSA-5QHX-GWFJ-6JQR
GO-2026-4450
OPENSUSE-SU-2026:21483-1
SUSE-SU-2026:0757-1

Affected Products

Gogs