Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2025-65852

CVE-2025-65852: Gogs has authorization bypass in repository deletion API

February 6, 2026

The DELETE /api/v1/repos/:owner/:repo endpoint lacks necessary permission validation middleware. Consequently, any user with read access (including read-only collaborators) can delete the entire repository.

This vulnerability stems from the API route configuration only utilizing the repoAssignment() middleware (which only verifies read access) without enforcing reqRepoOwner() or reqRepoAdmin().

References

  • github.com/advisories/GHSA-rjv5-9px2-fqw6
  • github.com/gogs/gogs
  • github.com/gogs/gogs/commit/961a79e8f9f2b3190ea804bcf635e4b43b123272
  • github.com/gogs/gogs/releases/tag/v0.13.4
  • github.com/gogs/gogs/security/advisories/GHSA-rjv5-9px2-fqw6
  • nvd.nist.gov/vuln/detail/CVE-2025-65852

Code Behaviors & Features

Detect and mitigate CVE-2025-65852 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.13.4

Fixed versions

  • 0.13.4

Solution

Upgrade to version 0.13.4 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

go/gogs.io/gogs/CVE-2025-65852.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 07 Feb 2026 00:18:24 +0000.