{"id":"CVE-2026-123638","state":"PUBLISHED","title":"Gitea protected file pattern bypass with quoted file names","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.","publishedAt":"2026-11-15T21:14:03.522Z","updatedAt":"2026-11-16T21:40:11.050Z","severity":{"score":8.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","source":"CISA-ADP"},"assigner":"Gitea","products":["Gitea Gitea"],"affected":[{"vendor":"Gitea","product":"Gitea","packageName":"gitea.dev","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"28.4.0","versionType":"semver"}]}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2","https://github.com/go-gitea/gitea/pull/40362","https://blog.gitea.com/release-of-28.4.0/","https://github.com/go-gitea/gitea/releases/tag/v28.4.0"],"weaknesses":["CWE-693"],"ingestedAt":"2026-11-16T21:46:06.068Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/123xxx/CVE-2026-123638.json","commit":"5e198cbe905d33b845c31d5bc39d8290ba1ab9cd","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-123638","state":"PUBLISHED","datePublished":"2026-11-15T21:14:03.522Z","dateUpdated":"2026-11-16T21:40:11.050Z","assignerShortName":"Gitea","assignerOrgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","dateReserved":"2026-11-15T20:29:37.618Z"},"containers":{"cna":{"title":"Gitea protected file pattern bypass with quoted file names","descriptions":[{"lang":"en","value":"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":[{"vendor":"Gitea","product":"Gitea","packageName":"gitea.dev","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"28.4.0","versionType":"semver"}]}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2","name":"GitHub Security Advisory GHSA-w87g-xmrp-86v2","tags":["vendor-advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/40362","name":"Fix on release/v28: go-gitea/gitea pull request #40362","tags":["patch"]},{"url":"https://blog.gitea.com/release-of-28.4.0/","name":"Gitea 28.4.0 release announcement","tags":["release-notes"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","name":"go-gitea/gitea v28.4.0 release","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-693","lang":"en","type":"CWE","description":"CWE-693: Protection Mechanism Failure"}]}],"providerMetadata":{"shortName":"Gitea","orgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","dateUpdated":"2026-11-15T21:14:03.522Z"},"credits":[{"lang":"en","value":"https://github.com/Bryan-Project","type":"reporter"},{"lang":"en","value":"https://github.com/yagcioglutoprak","type":"reporter"},{"lang":"en","value":"https://github.com/lunny","type":"remediation developer"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":8.3,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-11-16T21:40:04.214793Z","id":"CVE-2026-123638","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-16T21:40:11.050Z"}}]}}}