CVE-2026-58422: Gitea · Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
Affects code.gitea.io/giteaSource GCVE Database
Not known to be exploited · CVSS 7.6 High : upgrade to 1.26.4 soon.
Data as of 4 Dec 2026, 18:37 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.26.4
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade code.gitea.io/gitea to 1.26.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gocode.gitea.io/giteapkg:golang/code.gitea.io/giteaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, administrators should be aware that disabling accounts is ineffective for users with linked external identity providers. Alternative incident response measures should be considered, such as revoking access at the identity provider level or restricting OAuth authentication sources.
Description
Gitea version prior to 1.26.4 contains an improper authorization vulnerability in the OAuth2 sign-in callback. When a user authenticates via a linked external identity provider, the system silently re-enables accounts that were disabled by an administrator, bypassing the intended administrative disable action. This allows the user to regain full access, including read/write permissions to repositories and organizations, by simply completing the OAuth callback. This flaw undermines the disable account feature used for incident response in SSO deployments.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-g9g6-qhrc-p3qc (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-58422 (opens in a new tab)
- github.com/go-gitea/gitea/pull/38009 (opens in a new tab)
- github.com/go-gitea/gitea/commit/c43eb7c33a100ffc7b2367adf165f7085e0ccdc5 (opens in a new tab)
- blog.gitea.com/release-of-1.26.3-and-1.26.4 (opens in a new tab)
- github.com/go-gitea/gitea (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v1.26.4 (opens in a new tab)