CVE-2026-58422 Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
Attackers can bypass account disablement restrictions via OAuth sign-in, allowing disabled users to regain access to the Gitea Git server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-58422?
CVE-2026-58422 is a critical authentication bypass vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
Weakness: CWE-284
Which versions are affected by CVE-2026-58422?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.26.4 |
code.gitea.io/gitea Go | All versions | 1.26.4 |
code.gitea.io/gitea Go | All versions | 1.26.4 |
How do I fix CVE-2026-58422?
Upgrade code.gitea.io/gitea to 1.26.4 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2026-58422 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58422 exists.
Sources
Also known as GHSA-g9g6-qhrc-p3qc, GO-2026-6056.