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.
Published: 2026-01-22
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Authorization bypass allows deletion of Git LFS locks across repositories
Action: Immediate Patch
AI Analysis

Impact

The vulnerability permits a user with write access to a repository to delete Git LFS locks that belong to other repositories, effectively bypassing repository ownership checks. This results in unauthorized modification of lock state, which can disrupt collaboration, compromise the integrity of the project history, and facilitate further attacks such as arbitrary code execution within the repository. The weakness is classified as CWE-284 (Improper Authorization) and CWE-639 (Privilege Escalation through Privilege Validation Errors).

Affected Systems

The flaw affects installations of the Gitea open source Git server. No specific version range is listed in the CNA data; however, the advisory references the release of v1.25.4, which contains the fix, indicating that earlier releases are vulnerable. No other vendors or products are explicitly mentioned.

Risk and Exploitability

With a CVSS base score of 9.1, the severity is high. The EPSS score is less than 1%, suggesting that the likelihood of exploitation in the wild is low at this moment, and the vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog. Exploitation requires only authenticated access with write permission to a repository; the attack path is via standard HTTP API calls to delete locks, with no additional privilege escalation needed. The attack vector is inferred to be remote access over the web interface or API.

Generated by OpenCVE AI on April 18, 2026 at 15:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.25.4 or later to apply the patch that enforces proper ownership checks on LFS lock deletion.
  • Re‑audit repository permissions to ensure that only authorized users are granted write access, reducing the risk of cross‑repository lock manipulation.
  • Enable and review Gitea log monitoring for LFS lock deletion events to detect unauthorized attempts during the transition period.

Generated by OpenCVE AI on April 18, 2026 at 15:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-393c-qgvj-3xph Gitea does not properly validate repository ownership when deleting Git LFS locks
History

Thu, 29 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*

Tue, 27 Jan 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Critical


Fri, 23 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 23 Jan 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Thu, 22 Jan 2026 23:00:00 +0000

Type Values Removed Values Added
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.
Title Gitea Git LFS Lock Deletion Broken Access Control (Cross-Repo IDOR)
Weaknesses CWE-284
CWE-639
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-01-23T21:54:06.525Z

Reserved: 2026-01-08T23:02:37.525Z

Link: CVE-2026-20897

cve-icon Vulnrichment

Updated: 2026-01-23T17:56:49.022Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-22T22:16:18.960

Modified: 2026-01-29T22:02:20.170

Link: CVE-2026-20897

cve-icon Redhat

Severity : Critical

Publid Date: 2026-01-22T22:01:51Z

Links: CVE-2026-20897 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T15:30:03Z

Weaknesses