PT-2026-20320

CVE-2026-25120

·

Published

2026-02-17

·

Updated

2026-07-30

Description by

CVSS 4.0
5.1
Medium
MetricsAV: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.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-JJ5M-H57J-5GV7
GO-2026-4501
OPENSUSE-SU-2026:21483-1
SUSE-SU-2026:0757-1
Found an issue in the description? Have something to add? Feel free to write us 👾