CVE-2026-20897
JSON

9.1critical

Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)

Severity
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Gitea
Also known as
GHSA-393c-qgvj-3xphBIT-GITEA-2026-20897GHSA-rrq5-r9h5-pc7cGO-2026-4363

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

Product or packageVersionsReported by
Gitea Gitea Open Source Git Serverup to 1.25.3CVE List
openshift-pipelines/pipelines-opc-rhel9Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8Not specifiedCVE List
openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel9Not specifiedCVE List
github.com/go-gitea/gitea (Go)before 1.25.4GitHub Advisory Database
code.gitea.io/gitea (Go)before 1.25.4Go Vulnerability Database

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
redhat-SADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHubmedium CVSS:4.0CVSS: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 Databasecritical rating

Classification

CWE-284CWE-639

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

Go Vulnerability Database

Gitea does not properly validate repository ownership when deleting Git LFS locks in code.gitea.io/gitea

NVD (es)

Gitea no valida correctamente la propiedad del repositorio al eliminar bloqueos de Git LFS. Un usuario con acceso de escritura a un repositorio podría eliminar bloqueos LFS pertenecientes a otros repositorios.

References

https://github.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7cbroken-link, vendor-advisory, web
https://github.com/go-gitea/gitea/pull/36344fix, issue-tracking, patch, web
https://github.com/go-gitea/gitea/pull/36349fix, issue-tracking, patch, web
https://github.com/go-gitea/gitea/releases/tag/v1.25.4article, release-notes, web
https://blog.gitea.com/release-of-1.25.4/article, release-notes
https://access.redhat.com/security/cve/CVE-2026-20897vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2432204issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20897.jsonweb
https://nvd.nist.gov/vuln/detail/CVE-2026-20897advisory, web
https://github.com/go-gitea/gitea/commit/da036f3f35ca830b22cf4480912ed261303b798fweb
https://blog.gitea.com/release-of-1.25.4web
https://github.com/go-gitea/giteapackage

Sources

SourceRecordLicence
CVE ListCVE-2026-20897 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-393c-qgvj-3xph changed 2026-02-03CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4363 changed 2026-03-03CC-BY-4.0
NVDCVE-2026-20897 changed 2026-07-15Public domain
Bitnami Vulnerability DatabaseBIT-GITEA-2026-20897 changed 2026-09-08Apache-2.0