critical9.1
CVE-2026-20897
Gitea does not properly validate repository ownership when deleting Git LFS locks
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/go-gitea/gitea | < 1.25.4 | 1.25.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Gitea | Gitea | before 1.25.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://blog.gitea.com/release-of-1.25.4/
- https://github.com/go-gitea/gitea/pull/36344
- https://github.com/go-gitea/gitea/pull/36349
- https://github.com/go-gitea/gitea/releases/tag/v1.25.4
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7c
- https://access.redhat.com/security/cve/CVE-2026-20897
- https://bugzilla.redhat.com/show_bug.cgi?id=2432204
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20897.json
- https://github.com/advisories/GHSA-393c-qgvj-3xph
- https://nvd.nist.gov/vuln/detail/CVE-2026-20897
- https://blog.gitea.com/release-of-1.25.4
- https://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f