CVE-2026-20897
CRITICAL9.1EPSS 0.02%Gitea does not properly validate repository ownership when deleting Git LFS locks
Published: 1/23/2026Modified: 2/3/2026
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 (3)
- Bitnami/giteafrom 0, < 1.25.4
- Go/code.gitea.io/giteafrom 0, < 1.25.4
- Go/github.com/go-gitea/giteafrom 0, < 1.25.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-393c-qgvj-3xph
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-20897
- PATCHhttps://github.com/go-gitea/gitea
- WEBhttps://blog.gitea.com/release-of-1.25.4
- WEBhttps://blog.gitea.com/release-of-1.25.4/
- WEBhttps://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f
- WEBhttps://github.com/go-gitea/gitea/pull/36344
- WEBhttps://github.com/go-gitea/gitea/pull/36349
- WEBhttps://github.com/go-gitea/gitea/releases/tag/v1.25.4
- WEBhttps://github.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7c