CVE-2026-117635

Gitea admin API public-only token scope bypass

Published Nov 1, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
The `/api/v1/admin` route group did not enforce the `public-only` restriction of personal access tokens. A public-only token with admin scope issued by a site administrator could therefore list private organizations and the email addresses of all users, create organizations, obtain runner registration tokens and create new site administrator accounts, the last of which persists after the token is revoked. Tokens of users who are not site administrators cannot reach these routes; public-only tokens are now rejected on the admin API.

Analysis

AI-generated

Technical impact

The "/api/v1/admin" route group failed to enforce the public‑only restriction on personal access tokens. A public‑only token issued with admin scope by a site administrator could list private organizations, expose user email addresses, create organizations, obtain runner registration tokens, and even create new site administrator accounts that persist after the token is revoked. This constitutes an authorization bypass that permits attackers to gain privileged control and access sensitive data.

Affected Systems

Any Gitea instance running a version earlier than 28.3.0 is affected. The fix was introduced in the 28.3.0 release. Gitea administrators using older versions should upgrade to 28.3.0 or later to remediate the issue.

Risk and Exploitability

The EPSS score is < 1% and the vulnerability is not listed in the CISA KEV catalog. With a CVSS score of 6.5, the impact remains moderate: if an attacker gains a public‑only token with admin scope, they can perform high‑impact actions such as creating administrators that persist after token revocation and exposing sensitive data. The vulnerability can be exploited by any entity that has the ability to obtain such a privileged token from a site administrator, typically an internal threat. The comparatively low EPSS score suggests that the likelihood of exploitation is modest, but the potential for privilege escalation and data exposure still warrants high attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea 28.3.0 or newer, which applies the enforcement patch.
  • Revoke all existing public‑only tokens that were granted admin scope and regenerate tokens with appropriate scopes.
  • Require that site administrators do not issue public‑only tokens with admin scope; review token generation policies and enforce least privilege.
  • If immediate upgrade is not possible, restrict access to the /api/v1/admin routes to only fully authorized administrator tokens.

Generated by OpenCVE AI on November 6, 2026 at 18:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-267
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Important

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description The `/api/v1/admin` route group did not enforce the `public-only` restriction of personal access tokens. A public-only token with admin scope issued by a site administrator could therefore list private organizations and the email addresses of all users, create organizations, obtain runner registration tokens and create new site administrator accounts, the last of which persists after the token is revoked. Tokens of users who are not site administrators cannot reach these routes; public-only tokens are now rejected on the admin API.
Title Gitea admin API public-only token scope bypass
Weaknesses CWE-1259
CWE-284
References
Weaknesses
  • CWE-1259

    Improper Restriction of Security Token Assignment

  • CWE-267

    Privilege Defined With Unsafe Actions

  • CWE-284

    Improper Access Control

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Nov 6, 2026, 3:31 PM
Reserved
Nov 1, 2026, 8:48 AM
Status
Deferred
Published
Nov 1, 2026, 10:18 AM
Modified
Nov 6, 2026, 4:17 PM
Severity
Important
Public date
Nov 1, 2026, 9:48 AM