CVE-2026-20897
Critical · CVSS 9.1Gitea — Improper Authorization / Broken Object Level Authorization (BOLA) - LFS Lock Deletion without Repository Ownership Validation
- CVSS
- 9.1
- nvd
- EPSS
- —
- KEV
- No
- Class
- oss containerizable
- CWE-284, CWE-639, CWE-639
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.
Search profile — drives PoC discovery
Symbols DeleteLFSLockLFS locklfs/locksVerifyLFSLockrepo ownershipwrite accessgit-lfsLFSLockdeleteLockRouterLFSLockLFSLockDeleteHandlerpull/36344pull/36349GHSA-rrq5-r9h5-pc7c
Keywords CVE-2026-20897Gitea LFS lock deletion unauthorizedGitea GHSA-rrq5-r9h5-pc7cGitea LFS lock repository ownership bypassGitea CWE-639 BOLA LFSGitea write access cross-repo LFS lock deleteGitea v1.25.4 LFS lock fixgo-gitea LFS lock authorization bypass PoCGitea LFS lock privilege escalationGitea improper authorization LFS
Versions: < 1.25.4
Affected packages
| Bitnami | gitea | 0 → 1.25.4 |
| Go | code.gitea.io/gitea | 0 → 1.25.4 |
| Go | github.com/go-gitea/gitea | 0 → 1.25.4 |
References
- 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
Status: enriched · ingested 2026-06-27T06:00:38.000Z · profiled 2026-06-30T18:30:14.000Z