Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.3
CVE-2026-123638: Gitea allows protected files to be changed with quoted names
CVE-2026-123638 · published 6 days ago
Summary
In Gitea, the rule that should stop users from editing certain protected files can be bypassed when a file name contains a double quote, backslash or special character. The special characters cause the name to be quoted, preventing the rule from recognizing it, so a user with write permission can add, modify or rename protected files, including workflow scripts that run automatically. Update Gitea to the version that stops quoting file names in the protection check, or avoid using special characters in file names until you can upgrade.
What to do
- Update gitea gitea to version 28.4.0 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| gitea | gitea | < 28.4.0 |
Original advisory text
Gitea protected file pattern bypass with quoted file names
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.
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/ Vendor Advisory
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-1236... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-123638 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
8.3
High
Type
CWE-693Protection Mechanism Failure
Timeline
Published15 Nov 2026
Updated22 Nov 2026
First seen15 Nov 2026
Sources
CVE-2026-123638 · NVD
CVE-2026-123638 · MITRE
CVE-2026-123638 · OSV
GHSA-w87g-xmrp-86v2 · GHSA
Track software like this
Free during beta