Skip to main content
VulnerabilityPublished

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

Affects code.gitea.io/giteaSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.6 High : upgrade to 1.26.4 soon.

Data as of 4 Dec 2026, 18:37 UTC

CVSS 4.0 base score
7.6High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gocode.gitea.io/giteapkg:golang/code.gitea.io/giteaOther threatsAffected
  • <1.26.4
Fixed in
  • 1.26.4

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

Community reviews

Loading reviews…