Description
Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
Published: 2026-07-03
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Based on the description, it is inferred that an attacker who possesses OAuth credentials for a previously disabled account could trigger a re‑enable. The flaw is an improper authorization weakness (CWE‑284). When triggered, the system silently changes the account state back to active, granting all privileges of a former administrator. The impact is a full elevation of rights to administrative functions and potential compromise of all data managed by the instance.

Affected Systems

Installations of the Gitea Open Source Git Server that use the vulnerable OAuth sign‑in logic are affected. No specific version constraints were provided by the CNA data; any deployment that relies on the OAuth callback may be impacted, including older releases that have not been patched to the release of 1.26.4.

Risk and Exploitability

The CVSS score of 9.8 marks this defect as critical. Its EPSS score of < 1% denotes a very low probability of exploitation, yet the potential to regain administrative privileges makes it a high‑risk security concern. Because the vulnerability is not listed in the CISA KEV catalog, no known public exploits have been reported, but the attack path—obtaining OAuth credentials for a disabled account and visiting the callback URL—remains feasible for remote attackers who have compromised user credentials.

Generated by OpenCVE AI on July 23, 2026 at 16:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Gitea to version 1.26.4 or later, which contains the patch that disables automatic re‑enable of accounts during OAuth callback processing.
  • If upgrading is not immediately possible, disable the OAuth provider configuration for any disabled accounts or enforce an explicit administrative approval step before accounts can be re‑activated via OAuth.
  • Conduct a review of account logs for any unexpected state changes, and implement monitoring or alerting for automated re‑enable events that may indicate exploitation attempts.

Generated by OpenCVE AI on July 23, 2026 at 16:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g9g6-qhrc-p3qc Gitea: Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Mon, 06 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 03 Jul 2026 21:15:00 +0000

Type Values Removed Values Added
Description Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
Title Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
Weaknesses CWE-284
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-06T15:11:20.064Z

Reserved: 2026-06-30T18:57:20.614Z

Link: CVE-2026-58422

cve-icon Vulnrichment

Updated: 2026-07-06T15:11:10.736Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-23T16:15:03Z

Weaknesses