Description
Gitea resolves local reusable workflow files from a fork's head commit when a trusted base-branch workflow runs for a pull_request_target event. A fork author can modify a referenced reusable workflow so attacker-controlled code executes with the repository and organization secrets available to that event. Exploitation requires a base workflow that calls a local reusable workflow, and bypasses the intended separation between trusted base code and untrusted fork code.
Published: 2026-10-14
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch Immediately
AI Analysis

Impact

Gitea resolves local reusable workflow files from a fork's head commit when a trusted base‑branch workflow runs for a pull_request_target event. A fork author can modify a referenced reusable workflow so that attacker‑controlled code runs with the repository and organization secrets that are available to that event, effectively granting the attacker the ability to execute arbitrary code with elevated privileges.

Affected Systems

The vulnerable product is Gitea. Versions prior to 1.27.2 are affected. The issue was addressed in the 1.27.2 release.

Risk and Exploitability

The vulnerability can be exploited when a base workflow invokes a local reusable workflow and the attacker controls the referenced workflow in a fork. The attack vector is a pull_request_target event initiated from a fork, requiring only the ability to push commits to the fork. The EPSS score is < 1%, indicating a low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The CVSS score is not provided.

Generated by OpenCVE AI on October 15, 2026 at 19:15 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.2 or later.
  • Remove or disable the base workflow that calls local reusable workflows for pull_request_target events, or restrict it to trusted branches only.
  • Enforce that reusable workflows are sourced only from the upstream repository branches and prevent fork authors from modifying referenced workflow files.

Generated by OpenCVE AI on October 15, 2026 at 19:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Description Gitea resolves local reusable workflow files from a fork's head commit when a trusted base-branch workflow runs for a pull_request_target event. A fork author can modify a referenced reusable workflow so attacker-controlled code executes with the repository and organization secrets available to that event. Exploitation requires a base workflow that calls a local reusable workflow, and bypasses the intended separation between trusted base code and untrusted fork code.
Title Gitea reusable workflow secret exposure in pull_request_target
Weaknesses CWE-829
CWE-94
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T14:37:49.783Z

Reserved: 2026-08-13T16:50:59.749Z

Link: CVE-2026-73800

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:24.560

Modified: 2026-10-14T16:04:39.483

Link: CVE-2026-73800

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T19:15:18Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')