CVE-2026-20897
Critical
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.
SeverityCritical
CVSS9.1
Exploit probability—
Product
Gitea
PublishedJan 22, 2026
First seenJan 22, 2026
How to fix
Update
- gitea gitea1.25.4 or later
- github.com/go-gitea/gitea1.25.4 or later
- code.gitea.io/gitea1.25.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gitea gitea | v < 1.25.4 | 1.25.4 |
| github.com/go-gitea/giteaGo | v < 1.25.4 | 1.25.4 |
| code.gitea.io/giteaGo | v < 1.25.4 | 1.25.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.