Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2025-68940

CVE-2025-68940: Gitea doesn't adequately enforce branch deletion permissions after merging a pull request.

December 26, 2025

In Gitea before 1.22.5, branch deletion permissions are not adequately enforced after merging a pull request.

References

  • blog.gitea.com/release-of-1.22.5
  • github.com/advisories/GHSA-rrcw-5rjv-vj26
  • github.com/go-gitea/gitea
  • github.com/go-gitea/gitea/pull/32654
  • github.com/go-gitea/gitea/releases/tag/v1.22.5
  • nvd.nist.gov/vuln/detail/CVE-2025-68940

Code Behaviors & Features

Detect and mitigate CVE-2025-68940 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 1.22.5

Fixed versions

  • 1.22.5

Solution

Upgrade to version 1.22.5 or above.

Impact 3.1 LOW

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

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/code.gitea.io/gitea/CVE-2025-68940.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:35:41 +0000.