Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2026-58421

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

July 21, 2026

This issue has been found by a security agent and review by myself.

Gitea’s CODEOWNERS feature uses the regexp2 library to match file paths against ownership rules. User-supplied patterns are passed directly to regexp2.Compile with no sanitisation and no match timeout. This allows an attacker to write a pattern that causes the regex engine to backtrack exponentially when evaluated against a crafted file path.

References

  • blog.gitea.com/release-of-1.26.3-and-1.26.4
  • github.com/advisories/GHSA-v96j-25gv-g2w9
  • github.com/go-gitea/gitea/commit/ea35af1b68d57522c7686618bd61d3216d91589f
  • github.com/go-gitea/gitea/pull/38011
  • github.com/go-gitea/gitea/releases/tag/v1.26.4
  • github.com/go-gitea/gitea/security/advisories/GHSA-v96j-25gv-g2w9
  • nvd.nist.gov/vuln/detail/CVE-2026-58421

Code Behaviors & Features

Detect and mitigate CVE-2026-58421 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.26.4

Fixed versions

  • 1.26.4

Solution

Upgrade to version 1.26.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

go/code.gitea.io/gitea/CVE-2026-58421.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:33 +0000.