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: 8.8 High
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 8.8.

Generated by OpenCVE AI on October 18, 2026 at 15:25 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 18, 2026 at 15:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 18 Oct 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

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

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-18T13:33:34.382Z

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

Link: CVE-2026-73800

cve-icon Vulnrichment

Updated: 2026-10-18T13:33:25.423Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-18T14:16:55.687

Link: CVE-2026-73800

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T15:30:17Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

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