Skip to content
Critical 9.8

Giteaの認証連携に脆弱性、他人のアカウントへ乗っ取られるおそれ

CVE-2026-120263 First seen on SecPulse

Summary

Giteaでは、OAuth2のアカウント自動連携を有効にしていると、登録フォームから別のユーザーのアカウントに外部ID を連携され、パスワードなしでサインインされるおそれがあります。影響するのは28.3.0より前のバージョンで、28.3.0で修正されています。修正版へのアップデートをおすすめします。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Giteaでは、OAuth2のアカウント自動連携を有効にしていると、登録フォームから別のユーザーのアカウントに外部ID を連携され、パスワードなしでサインインされるおそれがあります。影響するのは28.3.0より前のバージョンで、28.3.0で修正されています。修正版へのアップデートをおすすめします。

Affected packages

PackageAffected → Fixed
GiteaGitea
< 28.3.0→ 28.3.0
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details