Skip to main content

Gitea CVE-2026-58422

| EUVDEUVD-2026-41605 CRITICAL
Improper Access Control (CWE-284)
2026-07-03 Gitea GHSA-g9g6-qhrc-p3qc
9.8
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Retain valid OAuth provider credentials
  2. Delivery
    Navigate to Gitea OAuth sign-in
  3. Exploit
    Complete provider callback
  4. Execution
    Disabled flag silently ignored
  5. Persist
    Account re-enabled and session granted
  6. Impact
    Regain access to repositories

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target account (1) exists in Gitea and is linked to a configured external OAuth/OIDC authentication provider, (2) has been set to disabled/prohibited-login by an administrator, and (3) the attacker still controls valid credentials at that OAuth provider to complete the sign-in callback. The limiting factors are significant: it only affects accounts an admin explicitly disabled (not arbitrary or new users), requires a functioning OAuth integration to be configured, and requires the attacker to authenticate successfully at the upstream identity provider - so an attacker with no prior account or whose provider identity has also been revoked cannot exploit it. It does not grant privileges beyond what the disabled account previously held.

Impact

The published CVSS is 9.8 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H), but the signals conflict with the described behavior. The description scopes the impact to re-enabling a previously-disabled account - an access-control/integrity failure - which does not plausibly carry a High availability impact (A:H), so the 9.8 appears inflated relative to the mechanism. EPSS is low at 0.16% (6th percentile), the CVE is not in CISA KEV, and no POC is referenced, indicating no evidence of active or imminent widespread exploitation. Realistic risk is bounded by a meaningful precondition: the attacker must already possess valid OAuth credentials for a specific account that an administrator chose to disable. Where such accounts exist (for example, a deprovisioned employee whose OAuth identity is still valid), the impact is genuinely serious because it defeats an intentional revocation; but it is not the mass-exploitable unauthenticated RCE that a 9.8 might suggest. Treat this as a targeted access-control priority for organizations that rely on Gitea's account-disable feature, not as an internet-worm-class emergency.

Exploit ScenarioDerived

An administrator disables a departing contributor's Gitea account, but the account remains linked to the organization's OAuth provider (e.g., a still-valid corporate SSO identity). The former user browses to the Gitea login page, clicks 'Sign in with OAuth,' completes the provider flow, and the callback silently re-enables their account, restoring access to private repositories. No public exploit code is required - the attack uses the product's normal OAuth login button.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 06, 2026

Authorization bypass in Gitea Open Source Git Server (versions up to and including 1.26.1) allows a user whose account was deliberately disabled by an administrator to silently regain access simply by signing in through a linked OAuth provider. The OAuth sign-in callback fails to honor the administrator's 'disabled' flag, effectively reversing an intended access-revocation action. EPSS is low (0.16%, 6th percentile) and there is no public exploit identified at time of analysis, but the flaw undermines a core account-lifecycle control on a widely self-hosted platform.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.26.4 (the fix is also present in 1.26.3), per https://github.com/go-gitea/gitea/releases/tag/v1.26.4 and the advisory https://github.com/go-gitea/gitea/security/advisories/GHSA-g9g6-qhrc-p3qc; the code change is in PR https://github.com/go-gitea/gitea/pull/38009. If immediate upgrade is not possible, do not rely on the 'disable account' feature alone as a revocation control for OAuth-linked users: instead delete the account or unlink/remove its OAuth authentication source so no valid external identity can reactivate it, and where feasible revoke or de-authorize the user at the upstream OAuth/OIDC provider so the identity provider itself rejects the sign-in. The trade-off is that unlinking or deleting accounts is more disruptive and less reversible than a soft-disable, and provider-side revocation depends on administrative access to the external IdP. As always, verify the disabled state actually blocks login after applying any workaround.

Affected VersionsENISA

Gitea Open Source Git Server 0 ≤1.26.1

Affected Packages

go code.gitea.io/gitea fix: 1.26.4
euvd gitea_open_source_git_server no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gitea is a self-hosted, lightweight Git service written in Go that supports external identity providers via OAuth2/OpenID Connect. When an account is linked to an OAuth provider, the sign-in callback handler resolves the external identity to a local Gitea user and establishes a session. This CVE is classified as CWE-284 (Improper Access Control): the callback logic re-activates the associated local account without re-checking whether an administrator had set that account to a disabled/prohibited-login state. The root cause is a missing authorization gate on the account-state field during the OAuth login flow, so the disable action - normally enforced on password login - is not consistently enforced across all authentication paths. The affected component per CPE is cpe:2.3:a:gitea:gitea_open_source_git_server for all versions through 1.26.1.

Know when Gitea gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Gitea) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.1 CRITICAL

Network OAuth flow with no prior Gitea privilege needed keeps AV:N/AC:L/PR:N/UI:N, but re-enabling an account is an access/integrity failure with no availability impact, so A:N (unlike the published A:H).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE CRITICAL

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
Jul 06, 2026 - 16:22 NVD
9.8 (CRITICAL)
CVE Published
Jul 03, 2026 - 20:54 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

Gitea Open Source Git Server versions up to 1.26.1 contain a critical authorization bypass that allows administratively disabled user accounts to regain access by authenticating through linked OAuth providers. This undermines a core access-revocation control for organizations managing source code repositories, creating uncontrolled access risk to sensitive infrastructure and code assets.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular self-hosted Git server, common in dev orgs, not ubiquitous
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

CVE-2020-13246 HIGH POC
7.5 May 20

An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy