Authorization bypass through user-controlled key in gogs - CVE-2026-25120

 

Authorization bypass through user-controlled key in gogs - CVE-2026-25120

Published: April 27, 2026


Vulnerability identifier: #VU128094
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-25120
CWE-ID: CWE-639
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
gogs

Detailed vulnerability description

The vulnerability allows a remote user to delete comments from other repositories.

The vulnerability exists due to authorization bypass through user-controlled key in the DeleteComment endpoint when handling comment deletion requests with user-supplied comment IDs. A remote user can send a specially crafted request with an arbitrary comment ID to delete comments from other repositories.

Exploitation requires administrative access to a repository and knowledge of a target comment ID from another repository.


How to mitigate CVE-2026-25120

Install security update from vendor's website.

Sources