Summary
CVE-2026-94205 is a critical incorrect-authorization flaw in Gitea Actions’ handling of pull requests from forked repositories, affecting Gitea versions up to and including 1.27.3. The approval gate that is supposed to block untrusted fork workflows from running on base-repository runners evaluated the identity of the user who triggered the event rather than the identity of the pull request’s author, allowing routine maintainer triage actions to inadvertently waive the approval requirement. This can result in attacker-controlled workflow code executing on the base repository’s CI runners, with high confidentiality and integrity impact.
Technical details
- Root cause: Gitea Actions decided whether a fork pull request run required approval by checking the user who triggered the event (e.g., the maintainer), instead of checking the pull request author.
- Trigger conditions: A maintainer performing an ordinary triage action on an open fork pull request — such as adding a label, assigning a reviewer, or reopening the PR — generates a
pull_requestevent that Gitea treats as implicitly trusted, even though the workflow definition is still pulled from the untrusted fork head. - Attack vector: Network — an external attacker opens a pull request from a fork containing a malicious workflow definition, then relies on a maintainer’s routine interaction with that PR to bypass the approval gate.
- Impact: The fork-supplied workflow executes on the base repository’s runners without the required human approval, enabling arbitrary code execution in the runner context and potential exposure of CI secrets, compromise of build infrastructure, or pivoting into the internal network connected to the runner.
Affected software
- Gitea: all versions up to and including 1.27.3
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to Gitea 28.0.0 or later, which checks both the event actor and the pull request author before waiving the approval requirement for fork workflows.
- If immediate patching is not possible: Disable or restrict Gitea Actions for pull requests originating from forks, require explicit workflow approval for all fork-based runs, and avoid routine maintainer interactions (labeling, reviewer assignment, reopening) on untrusted fork pull requests until the instance is patched.

