← Back to the monthly list · Gitea →
CVE-2026-120263 Gitea · Gitea
AI summary
In Gitea, when [oauth2_client].ACCOUNT_LINKING is set to auto (not default) and registration is enabled, an attacker with an account on a configured OAuth2 provider can link their identity to another user's account, including an administrator, and sign in without its password. Critical (CVSS 9.8); fixed so automatic linking only occurs when the provider's email or provider-derived user name matches.
Official description
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.
- Published
- 2026-11-01 10:18 UTC
- Modified
- 2026-11-06 16:17 UTC
- CVSS
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 0.62% (percentile 44)
- ENISA EUVD
- EUVD-2026-114790
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
- CWE
- CWE-287
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Scope
- unchanged
- Confidentiality
- high
- Integrity
- high
- Availability
- high
References
- NVD · CVE.org
- blog.gitea.com
https://blog.gitea.com/release-of-28.3.0/ - github.com
https://github.com/go-gitea/gitea/pull/40121 - github.com
https://github.com/go-gitea/gitea/pull/40137 - github.com
https://github.com/go-gitea/gitea/releases/tag/v28.3.0 - github.com
https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v