# CVE-2026-25120: Gogs Allows Cross-Repository Comment Deletion via DeleteComment

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-17T18:40:44.000Z
- Modified: 2026-06-17T10:24:08.540Z
- Also known as: GHSA-jj5m-h57j-5gv7, GO-2026-4501
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.0; before 0.14.0
- gogs.io/gogs (Go): before 0.14.0; all versions

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 2.7 Low `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gogs/gogs/commit/1b226ca48dc8b3e95cc1c41229d72819c960a1b7> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25120> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-25120](https://www.cve.org/CVERecord?id=CVE-2026-25120), CVE Terms of Use, modified 2026-02-19
- GitHub Advisory Database: [GHSA-jj5m-h57j-5gv7](https://github.com/advisories/GHSA-jj5m-h57j-5gv7), CC-BY-4.0, modified 2026-02-23
- Go Vulnerability Database: [GO-2026-4501](https://pkg.go.dev/vuln/GO-2026-4501), CC-BY-4.0, modified 2026-02-23
- NVD: [CVE-2026-25120](https://nvd.nist.gov/vuln/detail/CVE-2026-25120), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25120 · Whole record: https://cve.day/CVE-2026-25120.json · Rebuilt by cve.day 2026-11-25T22:59:14.069Z
