Vulnerability advisory
CVE-2026-20897
Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)
Also known as BIT-gitea-2026-20897GHSA-393c-qgvj-3xphGHSA-rrq5-r9h5-pc7cGO-2026-4363
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/go-gitea/gitea ↗ | |
| All commits before 369830bada2fd8826a5135cb2fc66660a9bef708 | 369830bada2fd8826a5135cb2fc66660a9bef708 |
Also listed as affected (43)
| |
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.
References
- Websecurity.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20897.json ↗
- Advisoryaccess.redhat.com/security/cve/CVE-2026-20897 ↗
- Advisoryblog.gitea.com/release-of-1.25.4/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20897.json ↗
- Advisorygithub.com/go-gitea/gitea/releases/tag/v1.25.4 ↗
- Advisorygithub.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7c ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-20897 ↗
- Reportbugzilla.redhat.com/show_bug.cgi?id=2432204 ↗
- Fixgithub.com/go-gitea/gitea/pull/36344 ↗
- Fixgithub.com/go-gitea/gitea/pull/36349 ↗