Skip to main content
VulnerabilityPublished

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

Affects code.gitea.io/giteaSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 1.26.4 soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gitea code.gitea.io/giteaAffected
  • <1.26.4
Fixed in
  • 1.26.4

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

Community reviews

Loading reviews…