cvelo
P2 · HighCVSS 8.3EPSS 0.4%

Gitea protected file pattern bypass with quoted file names

  • CVE-2026-123638
  • EUVD-2026-126124

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.

Text from the CVE.org record.

Recommendation

  • Gitea

    • If you run a version before 28.4.0update to 28.4.0 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Gitea

    Affected versionsFixed in
    before 28.4.028.4.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.