Skip to main content
Vulnerability Database/CVE-2026-94205

CVE-2026-94205: Gitea Actions Auth Bypass Vulnerability

CVE-2026-94205 is an authentication bypass flaw in Gitea Actions that allows fork-controlled workflow code to execute without approval when maintainers trigger events during pull request triage. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-94205 Overview

CVE-2026-94205 is an authorization flaw in Gitea Actions that allows fork-controlled workflow code to execute on a base repository's runners without the required approval gate. The platform decided whether a fork pull request run needed approval based on the account that triggered the event, not the pull request author. When a maintainer performed routine triage on a fork pull request, such as applying a label, Gitea created the workflow run without approval while still sourcing the workflow definition from the fork head. The result is unapproved execution of attacker-controlled workflow code on trusted CI infrastructure.

Critical Impact

Fork pull request authors can achieve code execution on a base repository's self-hosted or shared Actions runners whenever a maintainer performs an ordinary pull_request triage action.

Affected Products

  • Gitea Actions (bundled with Gitea server)
  • Gitea releases prior to v28.0.0
  • Deployments with Actions enabled and a matching registered runner

Discovery Timeline

  • 2026-10-06 - CVE-2026-94205 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-94205

Vulnerability Analysis

The weakness is a cross-boundary trust decision classified as [CWE-441] Unintended Proxy or Intermediary. Gitea Actions evaluates the approval requirement for workflow runs triggered by fork pull requests. Instead of checking the pull request author, who controls the branch and workflow files, Gitea checks the user who triggered the specific event. Maintainer triage events such as labeling, assigning, or editing a fork pull request bypass approval while Gitea continues to load the workflow YAML from the fork head commit. Attacker-controlled workflow steps then execute inside the base repository's runner context, with access to that runner's filesystem, secrets exposed to the job, and any network reachability the runner provides.

Root Cause

The approval policy uses the event actor as the trust signal. A maintainer acting on a fork pull request is implicitly trusted, so the gating logic skips the approval requirement. The workflow source, however, still resolves to the fork's head commit, which the pull request author can mutate at any time. The two decisions must be bound to the same principal, but the pre-patch code decoupled them.

Attack Vector

An attacker opens a pull request from a fork against a Gitea repository that has Actions enabled and a registered runner. The fork includes a modified workflow under .gitea/workflows/ that executes attacker commands on the runner. The attacker waits for, or socially engineers, any maintainer triage action against the pull request. When the maintainer applies a label or performs a similar pull_request activity, Gitea queues the run without approval and executes the fork's workflow definition on the base repository's runner. The attacker gains code execution scoped to the runner and any secrets that job is permitted to read.

No public proof-of-concept code is available. See the GitHub Security Advisory GHSA-xh39-mxw9-34pp and Pull Request #39399 for the upstream fix.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-94205

Indicators of Compromise

  • Workflow runs on fork pull requests that completed without an associated approval record in the Actions audit log.
  • Runner job logs showing checkout of a fork head commit followed by execution of commands not present in the base branch workflow definition.
  • Unexpected outbound network connections, new processes, or filesystem writes originating from the Gitea Actions runner during fork pull request jobs.

Detection Strategies

  • Correlate Gitea pull_request webhook events with Actions run records to identify runs triggered by maintainer triage against fork head SHAs.
  • Diff the workflow YAML executed by each run against the base branch workflow to flag divergence sourced from forks.
  • Review runner host telemetry for shell spawns, credential access, or egress patterns that deviate from the baseline build profile.

Monitoring Recommendations

  • Enable verbose Actions audit logging and ship it to a centralized log store for retention and query.
  • Alert on runner processes that read files under paths holding secrets, SSH keys, or cloud credentials.
  • Track Gitea server version across all instances and alert when any node reports a version earlier than v28.0.0.

How to Mitigate CVE-2026-94205

Immediate Actions Required

  • Upgrade Gitea to v28.0.0 or later on every server that exposes Actions. See the Gitea Release v28.0.0 notes.
  • Rotate any secrets, deploy keys, or tokens that were reachable from Actions runners prior to patching.
  • Audit recent fork pull request workflow runs for evidence of unauthorized execution against fork head commits.

Patch Information

The fix ships in Gitea v28.0.0, implemented via Pull Request #39399. The patched logic ties the approval decision to the pull request author rather than the event actor, so fork-sourced workflow code requires explicit approval regardless of which maintainer interacts with the pull request. Additional release context is available in the Gitea Blog Release Announcement.

Workarounds

  • Disable Gitea Actions on repositories that accept fork pull requests until the upgrade is complete.
  • Deregister self-hosted runners that process fork pull request workloads, or restrict them to isolated, ephemeral hosts with no production secrets.
  • Instruct maintainers to avoid triage actions on fork pull requests from untrusted contributors until all Gitea nodes are running v28.0.0 or later.
bash
# Verify installed Gitea version and confirm it meets the fixed release
gitea --version

# Example: temporarily disable Actions in app.ini pending upgrade
# [actions]
# ENABLED = false

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.