Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Gitea search endpoint over network
-
DeliverySubmit expensive git grep query on large repo
-
ExploitUnbounded search runs without timeout
-
ExecutionRepeat/parallelize requests to exhaust CPU
-
ImpactDenial of service for legitimate users
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the Gitea instance expose its repository code-search feature to the attacker and host at least one repository large enough for a git grep to be computationally expensive; the vulnerable code path is GrepSearch in modules/git/grep.go which ran with no timeout before 1.25.5. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N) the network-facing search endpoint is reachable without authentication or user interaction against default configurations, though on instances configured to require login for repository access the effective attacker must hold a valid account. Limiting factors: impact is availability-only (no data disclosure or modification), the search endpoint must be reachable, and instances with small repositories or anonymous-search disabled present less exploitable surface. |
| Impact | Signals are consistent but point to moderate, not critical, real-world urgency. The CVSS 3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N, availability-only impact A:H) reflects an easy, network-reachable DoS with no confidentiality or integrity effect. SSVC aligns: Exploitation 'none' (no observed exploitation), Automatable 'yes' (a script can hammer the search endpoint), Technical Impact 'partial' (resource exhaustion, not takeover). EPSS is low at 0.18% (7th percentile), and the vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation - the risk is availability degradation rather than compromise. One nuance to verify: CVSS scores this PR:N (unauthenticated), but real exposure depends on whether repository code search is reachable by anonymous users or only authenticated members on a given instance; on private/internal instances the practical attacker population is smaller. Overall this is a legitimate patch-soon DoS hardening issue, not a drop-everything emergency. |
| Exploit ScenarioDerived | An attacker with access to the Gitea web interface (anonymously if code search is public, otherwise as a low-privilege user) submits a stream of deliberately expensive code-search queries against large repositories. Each unbounded git grep consumes CPU for an extended period, and by automating concurrent requests the attacker exhausts server resources and denies service to legitimate users. No public exploit code is required - the attack reuses the normal search feature. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Uncontrolled resource consumption in Gitea before 1.25.5 allows remote attackers to exhaust server CPU by triggering unbounded 'git grep' code searches that ran without any execution timeout. Because the search endpoint is network-reachable and the CVSS vector (PR:N) indicates no authentication is required, an attacker can repeatedly submit expensive regex/pattern searches against hosted repositories to degrade or deny service. No public exploit identified at time of analysis, and EPSS is low (0.18%), but SSVC marks the flaw as automatable with partial technical impact.
RemediationAI
Upgrade to Gitea 1.25.5 or later, which adds a 30-second timeout to git grep searches (Vendor-released patch: 1.25.5; upstream fixes in https://github.com/go-gitea/gitea/pull/36809 and https://github.com/go-gitea/gitea/pull/36835, release notes at https://blog.gitea.com/release-of-1.25.5/). If you cannot upgrade immediately, reduce exposure by restricting or disabling anonymous access to code search - require authentication for repository browsing/search so unauthenticated users cannot trigger searches (trade-off: hampers public/open repositories that rely on open search). Additionally, place Gitea behind a reverse proxy and rate-limit requests to the search endpoints and enforce request/connection timeouts (trade-off: aggressive limits may throttle legitimate heavy users), and consider limiting search on very large repositories. These are compensating controls only; applying 1.25.5 is the definitive fix.
Affected VersionsENISA
Affected Packages
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 (a Go-based alternative to GitHub/GitLab) whose code-search feature shells out to the underlying 'git grep' command. The root cause is CWE-400 (Uncontrolled Resource Consumption): the GrepSearch implementation in modules/git/grep.go invoked git grep without an execution deadline, so a sufficiently expensive search pattern over large repositories could run indefinitely and pin server resources. The upstream fix (PR #36809) introduces a 30-second grepSearchTimeout constant and wires it into the git command via WithTimeout(), bounding each search; PR #36835 is a related follow-up. The affected CPE is cpe:2.3:a:gitea:gitea_open_source_git_server, confirming the Gitea server product itself rather than a plugin or dependency.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Network-reachable search with low complexity, no auth or interaction in default public-search deployments, and availability-only resource-exhaustion impact (C:N/I:N/A:H).
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
Lifecycle Timeline
2DescriptionCVE.org
Gitea versions before 1.25.5 do not enforce a timeout on git grep searches, allowing expensive searches to consume server resources.
Executive ViewAI
Gitea versions prior to 1.25.5 contain an uncontrolled resource consumption vulnerability enabling unauthenticated remote denial of service attacks through CPU exhaustion via code search operations. This directly impacts service availability for organizations using Gitea for repository hosting and could disrupt development workflows and deployment pipelines.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
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
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
EUVD-2026-41631
GHSA-h9c5-x7g8-4q7f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB