PT-2026-20320 · Gogs · Gogs
Tenbbughunters
·
Published
2026-02-17
·
Updated
2026-03-03
·
CVE-2026-25120
CVSS v4.0
5.1
Medium
| Vector | AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Gogs versions 0.13.4 and below
Description
Gogs, a self-hosted Git service, has an issue where the DeleteComment API does not properly verify if a comment belongs to the repository specified in the URL. This allows a repository administrator to delete comments from any other repository by providing arbitrary comment IDs, effectively bypassing authorization controls. The
DeleteComment function retrieves a comment by ID without validating repository ownership, and the Database function DeleteCommentByID does not perform repository validation. The vulnerable API endpoint is /owner/repo/issues/comments/:id/delete. The vulnerable parameter is :id, representing the comment ID.Recommendations
Update to version 0.14.0 or later to resolve this issue.
Exploit
Fix
IDOR
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gogs