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

High 8.3 Published Updated

Users with write access can bypass Gitea branch protection patterns using quoted file names to modify protected files or run workflows.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-123638?

CVE-2026-123638 is a high-severity security feature bypass vulnerability in Gitea, published on 15 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-693

Which versions are affected by CVE-2026-123638?

Only installations with a non-default setting turned on are exposed.

How do I fix CVE-2026-123638?

No fix has been published for CVE-2026-123638 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version, and do not rely on a single control for protection. More about Security feature bypass.

Is CVE-2026-123638 being exploited?

There is no known exploitation of CVE-2026-123638 in the wild and no public exploit code.

Sources

Also known as GHSA-w87g-xmrp-86v2.

Is CVE-2026-123638 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free