Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-gitea/gitea
  4. ›
  5. CVE-2026-20897

CVE-2026-20897: Gitea does not properly validate repository ownership when deleting Git LFS locks

January 23, 2026

Gitea does not properly validate repository ownership when deleting Git LFS locks. A user with write access to one repository may be able to delete LFS locks belonging to other repositories.

References

  • blog.gitea.com/release-of-1.25.4
  • github.com/advisories/GHSA-393c-qgvj-3xph
  • github.com/go-gitea/gitea
  • github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f
  • github.com/go-gitea/gitea/pull/36344
  • github.com/go-gitea/gitea/pull/36349
  • github.com/go-gitea/gitea/releases/tag/v1.25.4
  • nvd.nist.gov/vuln/detail/CVE-2026-20897

Code Behaviors & Features

Detect and mitigate CVE-2026-20897 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.25.4

Fixed versions

  • 1.25.4

Solution

Upgrade to version 1.25.4 or above.

Impact 4.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

go/github.com/go-gitea/gitea/CVE-2026-20897.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:36 +0000.