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

CVE-2026-104632: Gitea Actions Auth Bypass Vulnerability

CVE-2026-104632 is an authentication bypass flaw in Gitea Actions that allows unapproved workflow code from fork pull requests to execute on repository runners. 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-104632 Overview

CVE-2026-104632 is a broken access control flaw in Gitea Actions that allows workflow code from a first-time fork pull request contributor to execute on a repository's runners without maintainer approval. Gitea Actions normally blocks jobs from first-time fork contributors until a maintainer approves the run. The rerun code path only verified that a prior run had finished, then built new attempt jobs without re-checking the pending approval state. A user with Actions write access could cancel a run awaiting approval and re-run it, causing the new jobs to be queued as waiting rather than blocked.

Critical Impact

Untrusted workflow code from fork pull requests can execute on self-hosted Gitea Actions runners without the required maintainer approval, exposing runner secrets and infrastructure.

Affected Products

  • Gitea (self-hosted Git service with Actions enabled)
  • Gitea versions prior to 28.0.0
  • Deployments with Gitea Actions enabled and a matching runner registered

Discovery Timeline

  • 2026-10-06 - CVE-2026-104632 published to the National Vulnerability Database
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-104632

Vulnerability Analysis

Gitea Actions enforces a safety control that requires a maintainer to approve workflow runs created by first-time fork pull request contributors. The approval gate prevents untrusted code taken from a pull request head from executing on a repository's runners before a human review.

The rerun path bypassed this gate. When a user with Actions write access cancelled a run that was awaiting approval, the run was recorded as finished. On rerun, the code only checked that the previous attempt had completed, then created the new attempt's jobs in a waiting state instead of a blocked state. The run metadata still indicated that approval was required, but the new jobs were already eligible for pickup by a registered runner.

Cancelling and re-running stale fork checks is a routine maintenance action that does not usually involve the approval control. Where Actions is enabled and a matching runner is registered, workflow code from the fork pull request head can run on the repository's runners.

Root Cause

The rerun handler did not re-evaluate the approval requirement when constructing new attempt jobs. State checking considered only run completion, not the pending approval flag that governs fork contributions. This is a business logic flaw in the workflow state machine, classified under broken access control.

Attack Vector

An attacker opens a pull request from a fork as a first-time contributor. Any user with Actions write access on the target repository, including a maintainer performing routine cleanup, cancels the pending run and clicks rerun. The attacker's workflow code then executes on the repository's runners with access to runner secrets, cached credentials, and any resources the runner can reach. No code examples are published; refer to the GitHub Security Advisory GHSA-pvjf-7jrm-6w9g for maintainer-authored technical detail.

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-104632

Indicators of Compromise

  • Workflow runs tied to fork pull requests that transitioned from blocked or waiting_approval to waiting without an explicit approval event in the audit log.
  • Runner job logs executing code from pull request head commits authored by first-time external contributors.
  • Unexpected outbound network connections or secret access from Actions runners during fork pull request runs.

Detection Strategies

  • Audit the Gitea Actions database for action_run and action_run_job rows where the parent run has need_approval=true but child jobs reached a non-blocked state.
  • Correlate cancel and rerun events on fork pull request runs with job start timestamps to identify sequences that bypassed approval.
  • Review runner execution logs for workflow files sourced from untrusted pull request heads rather than the base repository.

Monitoring Recommendations

  • Forward Gitea application logs and runner job logs to a centralized log platform and alert on fork pull request job starts without a preceding approval event.
  • Monitor registered runners for unexpected process execution, outbound connections, and access to CI secrets.
  • Track pull request authors flagged as first-time contributors and alert on any associated workflow job that reaches a running state.

How to Mitigate CVE-2026-104632

Immediate Actions Required

  • Upgrade Gitea to version 28.0.0 or later, which contains the fix referenced in Gitea pull request #39399.
  • Rotate any secrets, deploy keys, and tokens exposed to Actions runners that may have processed fork pull requests from first-time contributors.
  • Review recent fork pull request workflow runs and runner job history for signs of unauthorized execution.

Patch Information

The fix is included in Gitea 28.0.0. See the GitHub Gitea Release v28.0.0 and the Gitea Blog Release Announcement for upgrade notes. The security advisory is published as GHSA-pvjf-7jrm-6w9g.

Workarounds

  • Disable Gitea Actions on repositories that accept pull requests from untrusted forks until the upgrade is applied.
  • Deregister self-hosted runners from repositories where fork pull requests are routinely processed.
  • Restrict Actions write permission to a minimal set of trusted maintainers and avoid cancelling or re-running fork pull request workflows that are awaiting approval.
bash
# Configuration example: disable Actions in app.ini until patched
[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.