CVE-2026-25120Gogs
Medium 5.1
Follow: this CVE · Gogs · Gogs We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- Yes
- Published
- Feb 19, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-639
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Gogs.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.14.0 |
0.14.0 |
go get gogs.io/gogs@v0.14.0 |
| Go | gogs.io/gogs |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-jj5m-h57j-5gv7, GO-2026-4501). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | < 0.14.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:0757-1 · Mar 3, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory