{"id":"CVE-2026-25120","published":"2026-02-19T01:59:39Z","modified":"2026-02-19T17:45:04Z","title":"Gogs Allows Cross-Repository Comment Deletion via DeleteComment","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00392,"percentile":0.24946,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/commit/1b226ca48dc8b3e95cc1c41229d72819c960a1b7","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":4.99},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-19T17:04:58.960021Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.0","all versions"],"patched":["0.14.0"],"from":["GHSA-jj5m-h57j-5gv7","GO-2026-4501"],"provenance":"source"}],"summary":{"text":"Gogs, the open source self-hosted Git service, contains an authorization flaw in its DeleteComment API, which does not check that a comment belongs to the repository named in the URL, and the underlying DeleteCommentByID database function performs no repository validation. An attacker with administrator rights on one repository, over network access and with valid credentials for that role and no user interaction needed, can delete comments belonging to other repositories by supplying their comment IDs.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:31Z"},"euvd":{"id":"EUVD-2026-8122","exploited":false,"provenance":"source"}}