# CVE-2026-20897: Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 05-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-01-22 · Modified: 2026-07-15
- Aliases: GHSA-393c-qgvj-3xph, BIT-gitea-2026-20897, GHSA-rrq5-r9h5-pc7c, GO-2026-4363
- Record: https://cvemate.com/vulnerability/CVE-2026-20897 · JSON: https://cvemate.com/vulnerability/CVE-2026-20897/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.455%, percentile 41.184%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- gitea gitea: \< 1.25.4
- gitea gitea open source git server: ≤ 1.25.3
- code.gitea.io gitea (Go): \< 1.25.4
- github.com/go-gitea gitea (Go): \< 1.25.4

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7c>
- <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://blog.gitea.com/release-of-1.25.4/>
- <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>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-20897>
- <https://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f>
- <https://blog.gitea.com/release-of-1.25.4>
- <https://github.com/go-gitea/gitea>
- <https://github.com/advisories/GHSA-393c-qgvj-3xph>

---

Data as of 2026-12-05T14:58:46.913Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
