# CVE-2026-123638: Gitea protected file pattern bypass with quoted file names

- Severity: High 8.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-15T21:14:03.522Z
- Modified: 2026-11-16T22:18:15.773Z
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gitea.dev: before 28.4.0

## 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)

## Sources

- CVE List: [CVE-2026-123638](https://www.cve.org/CVERecord?id=CVE-2026-123638), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-123638](https://nvd.nist.gov/vuln/detail/CVE-2026-123638), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-123638 · Whole record: https://cve.day/CVE-2026-123638.json · Rebuilt by cve.day 2026-11-25T22:59:50.838Z
