CVE-2026-20897
gitea: Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)
Severity by source
Trivy's own label is CRITICAL. Rated critical by Red Hat, Bitnami. Rated lower by GHSA (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | gitea | 1.25.4 |
| go::GitHub Security Advisory Go | github.com/go-gitea/gitea | 1.25.4 |
| rapidfort alpine 3.20 | gitea | 1.25.4-r0 |
| rapidfort alpine 3.21 | gitea | 1.25.4-r0 |
| rapidfort alpine 3.22 | gitea | 1.25.4-r0 |
| rapidfort alpine 3.23 | gitea | 1.25.4-r0 |
References
- https://access.redhat.com/security/cve/CVE-2026-20897
- https://blog.gitea.com/release-of-1.25.4
- https://blog.gitea.com/release-of-1.25.4/
- https://bugzilla.redhat.com/show_bug.cgi?id=2432204
- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f
- https://github.com/go-gitea/gitea/pull/36344
- https://github.com/go-gitea/gitea/pull/36349