CVE-2026-25120
Undergoing Analysis Undergoing Analysis - In Progress
Authorization Bypass in Gogs DeleteComment API Allows Comment Deletion

Publication date: 2026-02-19

Last updated on: 2026-02-19

Assigner: GitHub, Inc.

Description
Gogs is an open source self-hosted Git service. In versions 0.13.4 and below, the DeleteComment API does not verify that the comment belongs to the repository specified in the URL. This allows a repository administrator to delete comments from any other repository by supplying arbitrary comment IDs, bypassing authorization controls. The DeleteComment function retrieves a comment by ID without verifying repository ownership and the Database function DeleteCommentByID performs no repository validation. This issue has been fixed in version 0.14.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-19
Last Modified
2026-02-19
Generated
2026-05-07
AI Q&A
2026-02-19
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
gogs gogs to 0.14.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-639 The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Gogs, an open source self-hosted Git service, in versions 0.13.4 and below. The issue is that the DeleteComment API does not verify whether a comment actually belongs to the repository specified in the URL. As a result, a repository administrator can delete comments from any other repository by providing arbitrary comment IDs, effectively bypassing authorization controls.

The root cause is that the DeleteComment function retrieves comments by ID without checking repository ownership, and the underlying database function DeleteCommentByID does not perform any repository validation. This flaw was fixed in version 0.14.0.


How can this vulnerability impact me? :

This vulnerability allows a repository administrator to delete comments from any repository, not just the ones they manage. This can lead to unauthorized deletion of comments, potentially disrupting collaboration, removing important discussions or audit trails, and undermining trust in the integrity of repository data.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you should upgrade Gogs to version 0.14.0 or later, where the issue has been fixed.

Since the vulnerability allows repository administrators to delete comments from any repository by bypassing authorization, limiting repository administrator privileges and monitoring comment deletion activities may help reduce risk until the upgrade is applied.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart