CVE-2026-58422 Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.26.4
code.gitea.io/gitea GoAll versions1.26.4
code.gitea.io/gitea GoAll versions1.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.

Is CVE-2026-58422 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free