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.
Weaknesses
- CWE-693 — CWE-693: Protection Mechanism Failure
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 0 to <28.4.0 [affected] |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2 (vendor-advisory)
- https://github.com/go-gitea/gitea/pull/40362 (patch)
- https://blog.gitea.com/release-of-28.4.0/ (release-notes)
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Nov 2026 08:07 UTC.