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: 6.9 [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]
CVE-ID: CVE-2026-25120
CWE-ID: CWE-639
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

gogs

How to mitigate CVE-2026-25120

Install security update from vendor's website.

gogs - update to 0.14.0

External References

Related Security Bulletins