Executive brief
Gitea, an open-source Git service, contains a security flaw in how it manages file locks for Large File Storage (LFS). An authorized user with write access to one repository can delete file locks in other repositories they do not own. This could disrupt development workflows by allowing unauthorized users to unlock and modify files that other teams are currently working on.
Technical details
An authorization bypass vulnerability (CWE-639/CWE-284) exists in Gitea's Git LFS (Large File Storage) implementation. The application fails to verify that a requested LFS lock deletion belongs to the repository context in which the request is made. An attacker with write permissions to at least one repository on the instance can craft requests to delete LFS locks associated with any other repository. This vulnerability was addressed by ensuring LFS lock operations are strictly scoped to the intended repository. The fix is available in Gitea version 1.25.4.
Affected products
- Gitea Gitea Open Source Git Server < 1.25.4
- Red Hat OpenShift Pipelines 1
Timeline
- 2026-01-11: patched: Initial fix merged into main branch
- 2026-01-22: advisory: NVD and Gitea release advisory published
- 2026-01-22: patched: Gitea version 1.25.4 released
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