Description
Gitea's repository migration API accepts a public-only token when the request specifies creation of a private repository. A delegated token intended to operate only on public resources can create a private repository and migration task under the authorizing account or an organization where that user has the necessary permissions. The ordinary private repository-creation route rejects the same token, but the migration path omits that restriction.
Published: 2026-10-14
Score: 5.4 Medium
EPSS: n/a
KEV: No
Impact: Unauthorized Private Repository Creation
Action: Upgrade
AI Analysis

Impact

This vulnerability allows a user with a public-only delegated token to create a private repository and initiate a migration task through Gitea's migration API. The API mistakenly accepts the token when the request specifies a private repository, bypassing the authorization check that normally blocks such operations. An attacker possessing a public token can therefore create private repositories under an account or organization that grants permission to the token holder, escalating privileges and potentially exposing confidential data to the attacker.

Affected Systems

This vulnerability concerns the repository migration service in Gitea; the CVE payload does not specify affected product versions.

Risk and Exploitability

With a CVSS score of 5.4, the vulnerability carries a moderate severity. EPSS data is not available, so the likelihood of exploitation is unclear, and the vulnerability has not been listed in the CISA KEV catalog. The attack vector is a standard HTTP API call to the migration endpoint, requiring an authenticated public-only token that holds appropriate organizational or account permissions. Successful exploitation results in the unauthorised creation of private repositories, providing the attacker with persistence and covert data storage capabilities.

Generated by OpenCVE AI on October 15, 2026 at 01:56 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to a version that fixes the token validation issue, such as 1.27.3 or later, if available.
  • If an upgrade cannot be performed immediately, configure the system to deny migration requests that use public-only tokens, such as by blocking the migration endpoint for users without explicit private‑repository creation scopes or by adding an additional authorization layer that enforces token permissions.
  • Rotate or revoke any public-only delegated tokens that have been granted access to organization or account resources, and enforce a stricter token scope policy so that public tokens cannot be used to create or modify private repositories.

Generated by OpenCVE AI on October 15, 2026 at 01:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Wed, 14 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Description Gitea's repository migration API accepts a public-only token when the request specifies creation of a private repository. A delegated token intended to operate only on public resources can create a private repository and migration task under the authorizing account or an organization where that user has the necessary permissions. The ordinary private repository-creation route rejects the same token, but the migration path omits that restriction.
Title Gitea private migration creation with public-only tokens
Weaknesses CWE-863
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T15:03:18.068Z

Reserved: 2026-08-13T16:50:59.765Z

Link: CVE-2026-70400

cve-icon Vulnrichment

Updated: 2026-10-14T14:56:02.188Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:22.363

Modified: 2026-10-14T16:17:51.783

Link: CVE-2026-70400

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T02:00:12Z

Weaknesses