Skip to main content
← Vulnerabilities

Gitea admin API public-only token scope bypass

Affects Gitea 28.2.0 and earlier, where a public-only scoped token issued by a site admin can reach admin routes. Fixed in 28.3.0.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Published
Last modified
Published
Not listed in CISA KEV
8/100 · provisional
Specific setups only
Fix
Fixed in 28.3.0
None on Exploit-DB, Metasploit or GitHub

Summary

Gitea, the self-hosted Git service, is affected. A flaw in its admin API let personal access tokens restricted to public-only access perform administrative actions, such as viewing private organizations and user email addresses or creating new site administrator accounts that remain even after the token is revoked.

Read the original 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.

What to do

  • Check whether your setup matches what the bug needs.

    The token must be issued by a site administrator; tokens of non-admin users are blocked from admin routes. The token has the public-only scope. Affected Gitea versions are 28.2.0 and earlier.
  • Upgrade to a fixed version: 28.3.0.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • gitea.dev

    fixed in 28.3.0

Evidence 5

  1. Advisory
  2. Patch
  3. Patch
  4. Repository
  5. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-117635

What does this mean?

A token with the public-only scope can reach admin API routes it should not. Its holder can list private organizations, read every user's email address, create private organizations, obtain a runner registration token, and create a new site administrator account that remains after the token is revoked.Source: github.com, blog.gitea.com

Am I affected, and how do I check?

Gitea 28.2.0 and earlier are affected, but only when the token was issued by a site administrator with the public-only scope. Tokens issued by non-admin users are blocked from admin routes. To check, compare the installed Gitea version against 28.2.0 and review which tokens hold the public-only scope and were created by admins.Source: github.com, blog.gitea.com

What should I do about it?

Upgrade Gitea to 28.3.0, which contains the fix.Source: github.com, blog.gitea.com

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data