CVE-2026-86684

Gitea push mirror local path check uses the repository owner

Published Oct 6, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
The Gitea push mirror API checked whether the repository owner, instead of the requesting user, may use local file system paths. On instances with `[security] IMPORT_LOCAL_PATHS = true`, a repository administrator who is not allowed to import local paths could add a push mirror to a local path on the server when the repository owner has that permission. Gitea then pushed the repository's refs into an existing Git repository at that path with the permissions of the Gitea process.

Analysis

AI-generated

Technical impact

The Gitea push mirror API incorrectly evaluates permission by referencing the repository owner rather than the user that invoked the operation. This mischeck allows an admin user who does not normally have permission to use local filesystem paths to create a push mirror that points to any local repository path on the server on instances where the global setting IMPORT_LOCAL_PATHS = true. When the mirror synchronises, Gitea pushes the repository’s refs into the target repository using the Gitea process’s privileges. The vulnerability is a classic authorization flaw (CWE-863) that can result in unauthorized modification of local Git repositories and potentially the injection of malicious commits or alteration of repository history.

Affected Systems

This flaw affects Gitea installations that enable local path imports. While the specific affected versions are not enumerated in the advisory, the fix was introduced in release 28.1.0, so any Gitea instance running a version older than 28.1.0 is potentially vulnerable. The problem is present regardless of the number of repositories or the deployment topology.

Risk and Exploitability

The CVSS score of 7.1 indicates high severity, while the EPSS score of 0.00148 indicates a very low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog, so there are no known active exploits. The attack requires a user with repository administration privileges and the setting IMPORT_LOCAL_PATHS enabled. Because the flaw permits writing to arbitrary local repositories with the Gitea process’s effective permissions, an attacker could persistently tamper with committed contents, corrupt repository history, or backdoors. Although the exploitation is straightforward within the application, its impact is confined to the local server environment and requires administrative authentication to trigger.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 28.1.0 or newer to apply the official fix.
  • Disable the global IMPORT_LOCAL_PATHS setting if local path mirroring is not required in your deployment.
  • Restrict administrator roles that can create push mirrors, ensuring they only have permission to use remote git URLs.

Generated by OpenCVE AI on October 7, 2026 at 23:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description The Gitea push mirror API checked whether the repository owner, instead of the requesting user, may use local file system paths. On instances with `[security] IMPORT_LOCAL_PATHS = true`, a repository administrator who is not allowed to import local paths could add a push mirror to a local path on the server when the repository owner has that permission. Gitea then pushed the repository's refs into an existing Git repository at that path with the permissions of the Gitea process.
Title Gitea push mirror local path check uses the repository owner
Weaknesses CWE-863
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 7, 2026, 8:06 PM
Reserved
Oct 4, 2026, 10:02 PM
Status
Analyzed
Published
Oct 6, 2026, 10:17 PM
Modified
Oct 13, 2026, 6:05 PM