CVE Catalog

CVE-2026-123638

HighCVSS 8.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.43%

39th percentile - higher than 39% of all known CVEs

Summary

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.

Risk Assessment

File protection can be bypassed, including for workflow files, allowing a workflow to be added that runs on the repository's runners. This may lead to execution of malicious code in CI infrastructure.

Recommendation

Update Gitea to a version with the fix that lists changed files unquoted and reports both old and new paths on rename. Review workflow files and protected files for unauthorized changes.

Other vulnerabilities in Gitea

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS