Skip to main content

Gitea CVE-2026-58421

| EUVDEUVD-2026-41604 HIGH
Improper Access Control (CWE-284)
2026-07-03 Gitea GHSA-v96j-25gv-g2w9
7.5
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed Gitea HTTP endpoint
  2. Delivery
    Submit crafted CODEOWNERS pattern input
  3. Exploit
    Trigger catastrophic regex backtracking
  4. Execution
    Exhaust server CPU
  5. Impact
    Deny service to legitimate users

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

The specific prerequisite is that the target Gitea instance processes CODEOWNERS pattern matching against attacker-influenced input - the vulnerable code path is the CODEOWNERS regex evaluation. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N) exploitation requires no authentication, no user interaction, and only network reachability to the Gitea HTTP service, so any internet-exposed instance older than 1.26.3 is exposed. The limiting factors are: the attacker must be able to reach an endpoint that invokes CODEOWNERS processing, the affected version must predate the 1.26.3/1.26.4 fix, and the impact is confined to availability (service slowdown/outage) with no confidentiality or integrity effect.

Impact

Signals are internally consistent for a network-facing DoS but not a top-tier emergency. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U, C:N/I:N/A:H) scores 7.5 High and indicates remote, low-complexity, unauthenticated abuse affecting availability only - no data confidentiality or integrity loss. EPSS is low (0.16%, 6th percentile), there is no KEV listing and no POC referenced, so this is a plausible-but-not-yet-observed threat rather than an active campaign. The 'Authentication Bypass' tag in the intelligence conflicts with the description and the CVSS PR:N/A:H profile (a pure DoS, not an auth bypass) - treat that tag as mislabeled and rely on the ReDoS/DoS framing. Practical priority is moderate: patch promptly on internet-exposed Gitea instances, but this is an availability nuisance, not a code-execution or data-breach risk.

Exploit ScenarioDerived

An attacker reachable over the network sends a request that causes Gitea to evaluate a crafted CODEOWNERS pattern, triggering catastrophic regex backtracking that pegs a CPU core; repeating the request in parallel starves the server and denies service to legitimate users. Because the CVSS vector is AV:N/AC:L/PR:N/UI:N, no authentication or user interaction is required, though no public proof-of-concept has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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

Denial of service in Gitea, the self-hosted open-source Git service, allows a remote unauthenticated attacker to exhaust server CPU by triggering catastrophic backtracking in the regular-expression engine that evaluates CODEOWNERS pattern matching. All versions prior to the fixed 1.26.3/1.26.4 releases are affected, and the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, A:H only) confirms network-reachable, low-complexity, no-authentication abuse with availability-only impact. There is no public exploit identified at time of analysis and EPSS is low (0.16%, 6th percentile), so exploitation risk is real but not yet widespread.

RemediationAI

Vendor-released patch: upgrade Gitea to 1.26.4 (or at minimum 1.26.3), which contain the fix per the release blog (https://blog.gitea.com/release-of-1.26.3-and-1.26.4/) and the tagged release https://github.com/go-gitea/gitea/releases/tag/v1.26.4; the code change is in pull request https://github.com/go-gitea/gitea/pull/38011 and is described in advisory GHSA-v96j-25gv-g2w9. If immediate upgrade is not possible, reduce exposure by placing the Gitea instance behind authentication or a reverse proxy that rate-limits and time-limits requests to CODEOWNERS-triggering endpoints, and restrict who can create or modify repositories containing CODEOWNERS files - with the trade-off that rate-limiting can affect legitimate CI/automation traffic and restricting repo creation limits normal collaboration. These are stopgaps only; the regex fix in the patched release is the reliable remedy.

Affected VersionsENISA

Gitea Open Source Git Server 0 <1.26.2

Affected Packages

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

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

The flaw is a Regular Expression Denial of Service (ReDoS): Gitea parses repository CODEOWNERS files and compiles the ownership patterns into regular expressions, and a maliciously crafted pattern (or crafted input matched against it) causes catastrophic backtracking that consumes disproportionate CPU time. The affected component is the Gitea Open Source Git Server (cpe:2.3:a:gitea:gitea_open_source_git_server), a Go-based self-hosted Git forge comparable to GitHub/GitLab. The CVE is labeled CWE-284 (Improper Access Control), but that classification appears inaccurate for the described behavior - the actual root cause is an inefficient/uncontrolled regular expression (functionally CWE-1333 ReDoS / CWE-400 uncontrolled resource consumption), which the CVSS availability-only impact profile corroborates.

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 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote, low-complexity, unauthenticated ReDoS reachable over the network with no user interaction; availability-only impact, no confidentiality or integrity effect.

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

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

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

Lifecycle Timeline

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

DescriptionCVE.org

Unauthenticated ReDoS via CODEOWNERS pattern matching allows denial of service

Executive ViewAI

Why It Matters

Gitea instances running versions before 1.26.3 are vulnerable to a denial-of-service attack that could force service outages, halting critical development infrastructure with no authentication required. An unauthenticated attacker can trigger CPU exhaustion through regular CODEOWNERS pattern matching, creating a direct path to application unavailability. Organizations must upgrade immediately to restore reliability and prevent development team disruption.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular self-hosted Git forge, common but not ubiquitous in enterprises
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
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.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

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