Description
Gitea versions before 1.25.5 do not enforce a timeout on git grep searches, allowing expensive searches to consume server resources.
Published: 2026-07-03
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gitea versions before 1.25.5 do not enforce a timeout on git grep searches, which allows an attacker to submit search queries that consume excessive CPU and memory. This resource‑exhaustion flaw (CWE‑400) can degrade or halt the server’s availability, affecting all users accessing the service.

Affected Systems

The vulnerability affects the Gitea Open Source Git Server, specifically installations running any version earlier than 1.25.5. 1.25.5 and later releases include the timeout fix and are not affected.

Risk and Exploitability

The EPSS score of < 1% indicates a very low but nonzero exploitation probability, and the flaw is not listed in the CISA KEV catalog, suggesting low likelihood of active exploitation. The CVSS score of 7.5 reflects a moderate‑to‑high severity. Based on the description, the likely attack vector is through any interface that accepts git grep requests—most plausibly the web UI or REST API—allowing both authenticated and potentially unauthenticated users to initiate costly searches if not restricted.

Generated by OpenCVE AI on July 22, 2026 at 13:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.25.5 or later, which introduces a timeout for git grep searches.
  • If upgrade is not immediately feasible, restrict access to the git grep feature by applying ACLs or disabling the endpoint for non‑trusted users.
  • Apply operating‑system level resource limits (e.g., cgroups or ulimit) to the Gitea process to bound CPU and memory usage during grep operations.

Generated by OpenCVE AI on July 22, 2026 at 13:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Fri, 03 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
Description Gitea versions before 1.25.5 do not enforce a timeout on git grep searches, allowing expensive searches to consume server resources.
Title Gitea git grep search lacks a timeout
Weaknesses CWE-400
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-09T14:43:25.768Z

Reserved: 2026-03-03T03:25:28.646Z

Link: CVE-2026-26307

cve-icon Vulnrichment

Updated: 2026-07-09T14:16:15.331Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-22T13:15:12Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption