CVE-2026-20897 Details
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.
A vulnerability exists in Gitea's handling of Git Large File Storage (LFS) locks, specifically regarding the validation of repository ownership during the deletion process. Users with write access to a repository may inadvertently or intentionally delete LFS locks from other repositories, leading to potential disruption in version control and file management.
Users can upgrade to Gitea version 1.25.4, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-20897 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2432204 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20897.json | redhat-SADP | |
| https://blog.gitea.com/release-of-1.25.4/ | Gitea Limited | Release Notes |
| https://github.com/go-gitea/gitea/pull/36344 | Gitea Limited | Issue TrackingPatch |
| https://github.com/go-gitea/gitea/pull/36349 | Gitea Limited | Issue TrackingPatch |
| https://github.com/go-gitea/gitea/releases/tag/v1.25.4 | Gitea Limited | Release Notes |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-rrq5-r9h5-pc7c | Gitea Limited | Broken Link |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-284 | Improper Access Control | Gitea Limited |
| CWE-639 | Authorization Bypass Through User-Controlled Key | redhat-SADP |
| CWE-639 | Authorization Bypass Through User-Controlled Key | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| gitea gitea | < 1.25.4 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 27, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | Gitea Limited |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 29, 2026 | Initial Analysis | [email protected] |
| Jan 23, 2026 | CVE Modified | CISA-ADP |
| Jan 22, 2026 | New CVE Received | Gitea Limited |