PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-123638 Gitea CVE debrief

A bypass vulnerability exists in Gitea's protected file pattern feature. When checking file names against protected patterns, Gitea uses the output of git, which quotes names containing certain characters. This allows users with write access to add, change, or move files under protected patterns by direct push or pull request merge, potentially adding malicious workflows.

Vendor
Gitea
Product
Unknown
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-15
Original CVE updated
2026-11-16
Advisory published
2026-11-15
Advisory updated
2026-11-16

Who should care

Gitea instance administrators and users with write access to repositories should assess exposure and apply patches or mitigations as available. They should also verify the integrity of their repositories and monitor for suspicious activity. Additionally, security teams and vulnerability management teams should be aware of the potential risks and impacts of this vulnerability on their systems.

Why it matters

Defenders should care about CVE-2026-123638 as it allows users with write access to bypass protected file patterns in Gitea, potentially leading to unauthorized file changes or addition of malicious workflows. Administrators of Gitea instances and users with write access should verify exposure and apply patches or mitigations as available.

  • Potential addition of malicious workflows
  • Unauthorized file changes under protected patterns
  • Possible movement of protected files out of pattern reach

Technical summary

The protected file patterns setting in Gitea's branch protection rule is vulnerable to bypass when file names contain certain characters. Git quotes names with double quotes, backslashes, or control characters, preventing them from matching protected patterns. This allows users with write access to manipulate files under protected patterns, potentially adding malicious workflows or making unauthorized file changes. The vulnerability can be mitigated by updating to a patched version of Gitea. Instance administrators should verify exposure and apply patches or mitigations as available.

Defensive priority

Defenders should prioritize verifying exposure of Gitea instances to this vulnerability and apply patches or mitigations as available.

Recommended defensive actions

  • Verify Gitea instance exposure to CVE-2026-123638
  • Apply patches or mitigations as available
  • Monitor for suspicious file changes or workflow additions
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The CVE record and source item provide details on the vulnerability, including its description and affected versions. However, the corpus does not establish exploitation or specific impact, requiring verification from official sources.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-123638 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-123638

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-123638 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-123638

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Gitea protected file pattern bypass with quoted file names

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/123xxx/CVE-2026-123638.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/pull/40362

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://blog.gitea.com/release-of-28.4.0/

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/releases/tag/v28.4.0

    Supplemental source - release-notes

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.