CVE-2026-123638
8.3high
Gitea protected file pattern bypass with quoted file names
- Severity
- 8.3high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gitea.dev | before 28.4.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-123638 changed 2026-11-16 | CVE Terms of Use |
| NVD | CVE-2026-123638 changed 2026-11-16 | Public domain |