Skip to main content
EPSS 0.4%top 64%

CVE-2026-20897: CWE-284: Improper Access Control in Gitea Gitea Open Source Git Server

0
Critical
VulnerabilityCVE-2026-20897cvecve-2026-20897cwe-284cwe-639
Published: 01/22/2026 (01/22/2026, 22:01:51 UTC)
Source: CVE Database V5
Vendor/Project: Gitea
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected software

Gitea

Gitea Open Source Git Server

Affected versions
>=0 <=1.25.3
github.com/go-gitea/gitea
pkg:golang/github.com/go-gitea/gitea
Affected versions
=0

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

AILast updated: 07/15/2026, 08:32:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses