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
Share

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
qualitative

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
Analysis Generated
Jul 06, 2026 - 16:34 vuln.today
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

AnalysisAI

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.

Technical ContextAI

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.

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.

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-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-27780 CRITICAL
9.8 Jul 03

Branch-protection bypass in Gitea's self-hosted Git server (all versions before 1.26.0) allows a user with push access t

CVE-2026-26292 CRITICAL
9.8 Jul 03

Migration transport protections in Gitea are bypassed for Git LFS operations, affecting all self-hosted instances before

CVE-2026-58422 CRITICAL
9.8 Jul 03

Authorization bypass in Gitea Open Source Git Server (versions up to and including 1.26.1) allows a user whose account w

CVE-2026-22874 CRITICAL
9.6 Jul 03

Server-side request forgery in Gitea versions up to and including 1.26.2 lets authenticated users abuse incomplete allow

CVE-2026-58426 CRITICAL
9.6 Jul 03

Cross-repository information disclosure and cross-task tampering in Gitea's self-hosted Git server (fixed in v1.26.2) ar

CVE-2026-25718 CRITICAL
9.1 Jul 03

Arbitrary file read and write in Gitea before 1.25.5 arises when the template repository generation feature resolves pat

CVE-2026-22547 CRITICAL
9.1 Jul 03

Improper input validation in Gitea Open Source Git Server before 1.25.5 lets authenticated users submit repository-creat

CVE-2026-26232 CRITICAL
9.1 Jul 03

Authentication bypass via OAuth2 authorization code replay in Gitea before 1.25.5, where the server fails to consistentl

CVE-2026-26247 CRITICAL
9.1 Jul 03

OAuth2 PKCE protection bypass in Gitea before 1.25.5 allows remote attackers to complete an authorization-code token exc

CVE-2026-58433 CRITICAL
9.1 Aug 13

Broken access control in Gitea (self-hosted Git service) versions up to and including 1.26.4 lets the team-repository li

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

Share

CVE-2026-58421 vulnerability details – vuln.today

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