CVE-2026-73800

Gitea reusable workflow secret exposure in pull_request_target

Published Oct 14, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
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'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
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
Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 18, 2026, 1:33 PM
Reserved
Aug 13, 2026, 4:50 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 18, 2026, 2:16 PM