Bug 2564522 (CVE-2026-120263) - CVE-2026-120263 code.gitea.io/gitea: Gitea: Account takeover via improper OAuth2 account linking
Summary: CVE-2026-120263 code.gitea.io/gitea: Gitea: Account takeover via improper OAu...
Keywords:
Status: NEW
Alias: CVE-2026-120263
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-01 09:51 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:13 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-01 09:51:16 UTC
When `[oauth2_client].ACCOUNT_LINKING` is set to `auto` (not the default) and registration is enabled, the link-account sign-up form looked up the existing account to link by the user name or email submitted in the form instead of the identity asserted by the OAuth2 provider. An attacker with an account on a configured OAuth2 provider could submit another user's name, link their external identity to that Gitea account and be signed in as it without its password, including as an administrator. The link persisted for later sign-ins. Automatic linking now only happens when the existing account matches the provider's email or provider-derived user name; otherwise the account password is required.


Note You need to log in before you can comment on or make changes to this bug.