CVE-2026-94205

Description

A flaw was found in Gitea Actions. When determining whether workflow runs from fork pull requests require approval, Gitea evaluated the identity of the user triggering the event rather than the author of the pull request. Consequently, routine repository maintainer actions, such as adding a label, can trigger the workflow without requiring approval, allowing an attacker to achieve arbitrary code execution on the repository's runners.

Statement

A flaw was found in Gitea Actions, where the approval check for workflow runs triggered by fork pull requests was based on the identity of the user who triggered the event rather than the author of the pull request. As a result, when a repository maintainer performed a routine action on a fork pull request, such as adding a label during triage, the workflow definition taken from the fork's head could run on the base repository's registered runners without the required approval. An attacker able to open a fork pull request could leverage this to achieve arbitrary code execution on those runners, compromising the confidentiality, integrity, and availability of the runner environment. Red Hat rates this issue as IMPORTANT (CVSS 8.0, CVSS:3.1/AV:N/AC:L/PR:L/UI:R) because exploitation requires an account able to open a pull request and a maintainer interacting with it; this is lower than the CISA score of 9.8, which does not account for those prerequisites. Within Red Hat, the Konflux pipelines-pipelines-as-code-controller-rhel9 and pipelines-pipelines-as-code-watcher-rhel9 container images include the affected Gitea component, and their affects are recorded with a delegated resolution, meaning the impact is assessed and a fix is being pursued through the owning component's update process.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. The upstream Gitea project addressed this issue in Gitea 28.0.0 by checking both the event actor and the pull request author; the affected Konflux images are expected to receive the fix through the delegated update process.

Understanding the Weakness (CWE)

Confidentiality,Integrity,Availability

Technical Impact: Execute Unauthorized Code or Commands

An attacker could insert malicious functionality into the program by causing the program to download code that the attacker has placed into the untrusted control sphere, such as a malicious web site. This could enable the injection of malware, information exposure by granting excessive privileges or permissions to the untrusted functionality, DOM-based XSS vulnerabilities, stealing user's cookies, open redirect to malware (CWE-601), etc.

Frequently Asked Questions

Want to get errata notifications? Sign up here.