Description
Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.
Published: 2026-07-03
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea versions up to 1.26.2 allow a Git LFS object reuse flaw that bypasses code‑unit authorization. An attacker who has basic repository read permission but not code‑unit rights can request a previously uploaded LFS file that was owned by a higher‑privileged user. The ownership check for the LFS object identifier is omitted, enabling retrieval of private source objects and leaking confidential content. The weakness is cataloged as CWE‑639 (Missing Access Control) and CWE‑863 (Access Control Failure).

Affected Systems

This vulnerability impacts installations of the Gitea Open Source Git Server that run version 1.26.2 or earlier. Versions 1.26.3 and later contain the fix and are not susceptible to the bypass.

Risk and Exploitability

The CVSS score of 7.1 reflects a moderate‑to‑high severity. The EPSS score of less than 1% indicates a low but nonzero likelihood of exploitation. The flaw is not listed in the CISA KEV catalog. Exploitation requires only that the attacker have standard repository read access and that a usable LFS object exists in a repository where higher privileges are available. Based on the description, it is inferred that no special network conditions or local code execution are necessary; the malicious request can be made with standard Git LFS commands over any accessible network.

Generated by OpenCVE AI on July 24, 2026 at 10:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.26.3 or later.
  • Configure the system to allow LFS uploads and downloads only for users with code‑unit access to the target repository.
  • Enforce strict access‑control checks so that repository‑read‑only users cannot retrieve LFS objects originating from higher‑privileged accounts.

Generated by OpenCVE AI on July 24, 2026 at 10:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2m9v-5q2g-58vq Gitea: Git LFS object reuse allows non-Code access to authorize private source objects
History

Tue, 07 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Fri, 03 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Description Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.
Title Gitea LFS object reuse bypasses Code-unit authorization
Weaknesses CWE-639
CWE-863
References
Metrics cvssV3_1

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


Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-07T16:58:26.934Z

Reserved: 2026-03-03T03:25:59.982Z

Link: CVE-2026-28740

cve-icon Vulnrichment

Updated: 2026-07-07T16:38:56.887Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-24T10:45:03Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

  • CWE-863

    Incorrect Authorization