CVE-2026-20897: CWE-284: Improper Access Control in Gitea Gitea Open Source Git Server
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.
AI Analysis
Technical Summary
CVE-2026-20897 is an improper access control vulnerability (CWE-284) in Gitea Open Source Git Server. The issue arises because Gitea does not correctly verify repository ownership when processing requests to delete Git Large File Storage (LFS) locks. Consequently, a user who has write permissions on one repository can delete LFS locks from other repositories, potentially disrupting repository operations or causing data integrity issues. The vulnerability has a high impact on confidentiality and integrity but does not affect availability. No known exploits are reported in the wild. The Red Hat advisory linked does not provide explicit patch or remediation details.
Potential Impact
An attacker with write access to a repository can delete Git LFS locks from other repositories, which may lead to unauthorized modification or disruption of repository data integrity. This compromises the confidentiality and integrity of repository lock management but does not impact availability. The vulnerability has a CVSS 3.1 base score of 9.1, indicating critical severity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The provided Red Hat advisory link does not specify an official fix or workaround. Until a patch or official mitigation is available, restrict write access to trusted users only and monitor repository activities closely to detect any unauthorized LFS lock deletions.
CVE-2026-20897: CWE-284: Improper Access Control in Gitea Gitea Open Source Git Server
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.
CVSS v3.1
Score 9.1critical
Affected software
Gitea
Gitea Open Source Git Server
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-20897 is an improper access control vulnerability (CWE-284) in Gitea Open Source Git Server. The issue arises because Gitea does not correctly verify repository ownership when processing requests to delete Git Large File Storage (LFS) locks. Consequently, a user who has write permissions on one repository can delete LFS locks from other repositories, potentially disrupting repository operations or causing data integrity issues. The vulnerability has a high impact on confidentiality and integrity but does not affect availability. No known exploits are reported in the wild. The Red Hat advisory linked does not provide explicit patch or remediation details.
Potential Impact
An attacker with write access to a repository can delete Git LFS locks from other repositories, which may lead to unauthorized modification or disruption of repository data integrity. This compromises the confidentiality and integrity of repository lock management but does not impact availability. The vulnerability has a CVSS 3.1 base score of 9.1, indicating critical severity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The provided Red Hat advisory link does not specify an official fix or workaround. Until a patch or official mitigation is available, restrict write access to trusted users only and monitor repository activities closely to detect any unauthorized LFS lock deletions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Gitea
- Date Reserved
- 2026-01-08T23:02:37.525Z
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-20897","vendor":"Red Hat"}]
Threat ID: 6972a2c84623b1157c932834
Added to database: 01/22/2026, 22:20:56 UTC
Last enriched: 07/15/2026, 08:32:06 UTC
Last updated: 09/10/2026, 22:20:13 UTC
Views: 266
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.