CVE-2026-58421 Unauthenticated ReDoS via CODEOWNERS pattern matching allows denial of service

High 7.5 Published Updated

Unauthenticated attackers can cause denial of service in Gitea by exploiting ReDoS vulnerabilities in CODEOWNERS pattern matching.

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-58421?

CVE-2026-58421 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

Unauthenticated ReDoS via CODEOWNERS pattern matching allows denial of service

Weakness: CWE-284

Which versions are affected by CVE-2026-58421?

3 open source packages ship an affected version, including code.gitea.io/gitea.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.26.4
code.gitea.io/gitea GoAll versions1.26.4
code.gitea.io/gitea GoAll versions1.26.4

How do I fix CVE-2026-58421?

Upgrade code.gitea.io/gitea to 1.26.4 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-58421 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58421 exists.

Sources

Also known as GHSA-v96j-25gv-g2w9, GO-2026-6077.

Is CVE-2026-58421 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free