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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-01-22T22:01:51.508Z
- Modified: 2026-09-08T08:47:34.253Z
- Also known as: GHSA-393c-qgvj-3xph, BIT-GITEA-2026-20897, GHSA-rrq5-r9h5-pc7c, GO-2026-4363
- Weaknesses: CWE-284, CWE-639
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- Gitea Gitea Open Source Git Server: up to 1.25.3
- openshift-pipelines/pipelines-opc-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8: no versions given
- openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel9: no versions given
- github.com/go-gitea/gitea (Go): before 1.25.4
- code.gitea.io/gitea (Go): before 1.25.4
- gitea gitea: before 1.25.4
- gitea (Bitnami): before 1.25.4

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- redhat-SADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Medium `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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7c> (broken-link, vendor-advisory, web)
- <https://github.com/go-gitea/gitea/pull/36344> (fix, issue-tracking, patch, web)
- <https://github.com/go-gitea/gitea/pull/36349> (fix, issue-tracking, patch, web)
- <https://github.com/go-gitea/gitea/releases/tag/v1.25.4> (article, release-notes, web)
- <https://blog.gitea.com/release-of-1.25.4/> (article, release-notes)
- <https://access.redhat.com/security/cve/CVE-2026-20897> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2432204> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20897.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-20897> (advisory, web)
- <https://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798f> (web)
- <https://blog.gitea.com/release-of-1.25.4> (web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/advisories/GHSA-393c-qgvj-3xph> (advisory)

## Sources

- CVE List: [CVE-2026-20897](https://www.cve.org/CVERecord?id=CVE-2026-20897), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-393c-qgvj-3xph](https://github.com/advisories/GHSA-393c-qgvj-3xph), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4363](https://pkg.go.dev/vuln/GO-2026-4363), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-20897](https://nvd.nist.gov/vuln/detail/CVE-2026-20897), Public domain, modified 2026-07-15
- Bitnami Vulnerability Database: [BIT-GITEA-2026-20897](https://osv.dev/vulnerability/BIT-GITEA-2026-20897), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-20897 · Whole record: https://cve.day/CVE-2026-20897.json · Rebuilt by cve.day 2026-11-25T22:59:13.082Z
