CVE-2026-123638

published 15 Nov 2026 · updated 16 Nov 2026

Gitea protected file pattern bypass with quoted file names

8.3HighCVSS 8.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Gitea 28.4.0.

The "Protected file patterns" setting of a branch protection rule was checked against file names as git prints them, and git quotes names that contain a double quote, a backslash or a control character. Such names never matched a pattern, so a user with write access could add or change files under a protected pattern by direct push or through a pull request merge, and could move a protected file out of the pattern's reach by renaming it. Where the patterns protect workflow files, this allowed adding a workflow that then ran on the repository's runners. Changed files are now listed unquoted, and a rename reports both the old and the new path.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GiteaGitea<28.4.028.4.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gitea, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-123638 severity on Zeptric[![CVE-2026-123638](https://zeptric.io/badge/cve/CVE-2026-123638.svg)](https://zeptric.io/cve/CVE-2026-123638)