CVE-2025-65852: Gogs repository deletion missing authorization
CVE-2025-65852 is a broken access-control vulnerability in Gogs's repository-deletion API. The affected operation verifies that a caller has repository read access but does not additionally enforce repository-owner or administrator authorization before deleting the repository.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An authenticated read-only repository collaborator possessing a valid API token can permanently delete a repository to which they have read access. Deleted data can include source code, Git history, issues, and wiki content, causing severe integrity and availability impact and potentially irreversible data loss where recoverable backups are unavailable.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict or disable repository-deletion API access where feasible. Remove unnecessary read-only collaborators; revoke or rotate API tokens issued to untrusted accounts; monitor API logs for repository-deletion requests; and maintain tested, recoverable repository backups.
Remediation
Patch, then assume compromise.
Upgrade Gogs to version 0.13.4 or later, which adds the required authorization validation for repository deletion. After upgrading, verify that deletion is permitted only for repository owners or administrators.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2025-65852 exploited in the wild?
- As of Sep 26, 2026, Mallory has no reports of CVE-2025-65852 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-65852?
- As of Sep 26, 2026, Mallory has found no public exploit for CVE-2025-65852.
- Is there a patch for CVE-2025-65852?
- Upgrade Gogs to version 0.13.4 or later, which adds the required authorization validation for repository deletion. After upgrading, verify that deletion is permitted only for repository owners or administrators.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.