CVE-2026-123638
published high CVSS 3.1 · 8.3Gitea protected file pattern bypass with quoted file names
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 0 to < 28.4.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 to < 28.4.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
1- CWE-693 CWE-693: Protection Mechanism Failure
References
4- Gitea 28.4.0 release announcement https://blog.gitea.com/release-of-28.4.0/
- Fix on release/v28: go-gitea/gitea pull request #40362 https://github.com/go-gitea/gitea/pull/40362
- go-gitea/gitea v28.4.0 release https://github.com/go-gitea/gitea/releases/tag/v28.4.0
- GitHub Security Advisory GHSA-w87g-xmrp-86v2 https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2
Provider assertions
2Gitea · cna
Gitea protected file pattern bypass with quoted file names
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d26b5e05877de712ed329b4845adbcd3e7dc1ea992873c7d60ca62816fd5d2a4
- Ingested
- 16 Nov 2026, 21:48:52 UTC
- Source record
- Official CVE record