CVE-2026-58421: Gitea · Unauthenticated ReDoS via CODEOWNERS pattern matching allows denial of service
Affects code.gitea.io/giteaSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.26.4 soon.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.26.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 21 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade code.gitea.io/gitea to 1.26.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gitea code.gitea.io/gitea | Affected
| Fixed in
|
AI-suggested
If you cannot patch yet, restrict the ability of users to create or modify CODEOWNERS files with complex regex patterns or implement rate limiting on pull request creation to mitigate potential abuse.
Description
Gitea versions prior to 1.26.4 contain a vulnerability in the CODEOWNERS feature where user-supplied regex patterns are compiled without sanitization or timeout, enabling a Regular Expression Denial of Service (ReDoS) attack. An attacker with a repository can craft malicious CODEOWNERS patterns and file names in pull requests that cause exponential regex backtracking, hanging the server during pull request processing. This results in database connections being held open, potentially exhausting the connection pool and making the Gitea instance unresponsive.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-v96j-25gv-g2w9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-58421 (opens in a new tab)
- github.com/go-gitea/gitea/pull/38011 (opens in a new tab)
- github.com/go-gitea/gitea/commit/ea35af1b68d57522c7686618bd61d3216d91589f (opens in a new tab)
- blog.gitea.com/release-of-1.26.3-and-1.26.4 (opens in a new tab)
- github.com/go-gitea/gitea (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v1.26.4 (opens in a new tab)