Gitea protected file pattern bypass with quoted file names
- State
- Published
- Severity
- 8.3 High
- Published
- Nov 15, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 15, 2026
Description
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.
| Product | Versions |
|---|---|
| Gitea Gitea | before 28.4.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 8.3 High | CISA-ADP |
Weaknesses
- CWE-693 Protection Mechanism Failure
References
- GitHub Security Advisory GHSA-w87g-xmrp-86v2Vendor Advisory
- Fix on release/v28: go-gitea/gitea pull request #40362Patch
- Gitea 28.4.0 release announcementRelease Notes
- go-gitea/gitea v28.4.0 releaseRelease Notes
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.