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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Lifecycle Timeline
4DescriptionCVE.org
Gitea versions before 1.25.5 do not enforce a timeout on git grep searches, allowing expensive searches to consume server resources.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
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
An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4. Rated high severity (CVSS 7.1), this vulnerab
Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5. Rated medium severity (CVSS 6.1), this vulne
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41631
GHSA-h9c5-x7g8-4q7f