CVE-2026-26307 Gitea git grep search lacks a timeout
Attackers can cause denial of service by triggering expensive git grep searches that consume server resources due to missing timeouts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-26307?
CVE-2026-26307 is a high-severity denial of service vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Gitea versions before 1.25.5 do not enforce a timeout on git grep searches, allowing expensive searches to consume server resources.
Weakness: CWE-400
Which versions are affected by CVE-2026-26307?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.25.5 |
code.gitea.io/gitea Go | All versions | 1.25.5 |
code.gitea.io/gitea Go | All versions | 1.25.5 |
How do I fix CVE-2026-26307?
Upgrade code.gitea.io/gitea to 1.25.5 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-26307 being exploited?
There is no known exploitation of CVE-2026-26307 in the wild and no public exploit code.
Sources
Also known as GHSA-h9c5-x7g8-4q7f, GO-2026-6341.