GitHub Advisoryadvisory · Go
GHSA-393c-qgvj-3xph Gitea does not properly validate repository ownership when deleting Git LFS locks
MEDIUM
Official page ↗
- Aliases
- CVE-2026-20897
- Ecosystem
- Go
- Packages
- github.com/go-gitea/gitea
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Weaknesses
- CWE-284
- Reviewed
- 2026-01-23
Affected packages
• Go github.com/go-gitea/gitea: < 1.25.4 → fixed in 1.25.4
Description
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.
Related
Alias · CVE (1)
- CVE-2026-20897 Gitea does not properly validate repository ownership when deleting Git LFS locks. vulnerability
Weakness · CWE (1)
- CWE-284 Improper Access Control weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-20897 advisory
- https://github.com/go-gitea/gitea/pull/36344 web
- https://github.com/go-gitea/gitea/pull/36349 web
- https://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f web
- https://blog.gitea.com/release-of-1.25.4 web
- https://github.com/go-gitea/gitea package
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4 web