Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate and fork target repository
-
DeliveryOpen PR altering pull_request_target workflow
-
ExploitGitea reads workflow from PR commit
-
ExecutionInjected workflow runs with base-repo privileges
-
ImpactExecute arbitrary code and exfiltrate secrets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires (1) Gitea Actions enabled on the instance and (2) a target repository that defines a workflow triggered by pull_request_target; without such a workflow the flaw is not reachable. The attacker must hold a low-privileged authenticated account able to open a pull request (typically from a fork). Exploitation is LIMITED by these non-default prerequisites: instances without Actions, or repos using only the safer pull_request trigger, are not affected. Fixed in Gitea 1.27.2 (Alpine 1.27.3-r0); versions 1.19.0 through 1.27.1 are vulnerable. |
| Impact | Signals are moderately consistent and point to a genuine but conditionally-gated priority. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H, score 8.8) indicates network-reachable exploitation by a low-privileged authenticated user with high impact across confidentiality, integrity and availability - consistent with CWE-94 code injection and the RCE tag. The source-code evidence (PR #38886) confirms the root cause: for pull_request_target runs, Gitea read the Actions workflow Content from the pull-request commit rather than the trusted base-branch commit, so a fork PR could inject attacker-controlled workflow code that executes in the privileged base-repo context (a classic 'pwn-request'). However, the exploitation-probability signals are LOW and work against treating this as a mass-exploitation event: EPSS is only 0.22% (12th percentile), the CVE is NOT in CISA KEV, and no public exploit (POC) is identified in the input. The key tension: CVSS AC:L understates the real precondition - exploitation requires the target repo to actually define a pull_request_target-triggered workflow AND have Gitea Actions enabled, which is a non-default, deployment-specific condition. Net: a legitimately high-severity RCE for Gitea instances running Actions with pull_request_target workflows, but there is no evidence of active or widespread exploitation; prioritize patching for Actions-enabled instances rather than as an emergency for all Gitea deployments. |
| Exploit ScenarioDerived | An attacker registers an account on a Gitea instance running Actions and opens a pull request from a fork against a repository whose workflows use the pull_request_target trigger. Because the vulnerable code read the workflow Content from the PR's own commit instead of the base branch, the attacker's modified workflow executes in the trusted base-repo context with access to repository secrets, enabling arbitrary code execution on the runner. No public exploit is identified at time of analysis, though the fixing pull request and GHSA advisory describe the mechanism in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 18, 2026
Code injection in Gitea's Actions workflow handling can let a low-privileged authenticated user who can open a pull request cause workflow content to be executed from the wrong commit in pull_request_target runs, potentially running attacker-influenced workflow code in a privileged context. Gitea 1.19.0 through 1.27.1 are affected; fixed releases are Gitea 1.27.2 and Alpine package 1.27.3-r0. Exploitation is gated on Gitea Actions being enabled and a repository defining a pull_request_target workflow, EPSS is low at 0.22% (12th percentile), and no public exploit was identified at time of analysis.
Earlier versions of this analysis (1)
Gitea, the self-hosted Git service, received a security fix packaged by Alpine Linux as gitea 1.27.3-r0. The underlying vulnerability - its class, attack vector, and impact - is not described in any available intelligence source. The Alpine Linux vendor advisory confirms a security-motivated package update but provides no further disclosure about what was corrected.
RemediationAI
Vendor-released patch: upgrade to Gitea 1.27.2 or later; on Alpine Linux upgrade the gitea package to 1.27.3-r0 or later. Follow the vendor advisory and release guidance at https://github.com/go-gitea/gitea/security/advisories/GHSA-r9ch-mqjm-g67v and https://blog.gitea.com/release-of-1.27.2/. If upgrading immediately is not possible, disable Gitea Actions on affected instances, which removes the vulnerable workflow execution path but also disables all CI/CD jobs; alternatively, remove or replace pull_request_target workflows with pull_request, which reduces exposure but changes secret availability and fork behavior and may break workflows that depend on base-repository secrets. Also restrict pull-request creation to trusted users where feasible and audit repositories for pull_request_target workflows that process untrusted PR content. The fix PRs are https://github.com/go-gitea/gitea/pull/38886 and https://github.com/go-gitea/gitea/pull/38897.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gitea Actions implements GitHub Actions-compatible CI/CD workflows. The flaw is in scoped workflow detection and run creation: DetectedWorkflow did not carry the source commit SHA, so workflow Content could be associated with a different commit than the one from which it was read. For pull_request_target events this matters because the workflow should come from the base branch, where repository secrets and write tokens may be available, while the triggering pull request can originate from a fork. The upstream fix adds SourceCommitSHA to DetectedWorkflow, populates it with the commit ID in DetectWorkflows and DetectScheduledWorkflows, threads it through ParseScopedWorkflows, and adds pullRequestTargetBaseSHA to resolve the base branch SHA. CWE-94 code injection is the relevant root-cause class: PR-controlled state influenced which workflow content was executed. The supplied CVSS score is 8.8, but the independent assessment sets attack complexity to High because Actions must be enabled and a pull_request_target workflow must exist; no CPE strings were provided.
Know when Gitea gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable code injection by a low-priv user who can open a PR (PR:L), but reachable only when a pull_request_target workflow exists, a condition outside attacker control, so AC:H; full RCE impact gives C:H/I:H/A:H.
Primary rating from Vendor (vendor:alpine).
CVSS VectorVendor: vendor:alpine
Lifecycle Timeline
3DescriptionCVE.org
Alpine Linux: gitea fixed in 1.27.3-r0
Executive ViewAI
Gitea deployments using Actions with pull_request_target workflows are exposed to a privileged workflow code-execution path affecting versions 1.19.0 through 1.27.1. The issue matters to leadership because it can undermine CI/CD trust boundaries and repository automation for teams relying on Gitea Actions, although exploitation requires Actions enabled and a specific workflow pattern, and no public exploit was identified at time of analysis. Remediation is available through Gitea 1.27.2 or Alpine package 1.27.3-r0.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
EUVD-2026-101106
NVD
CVE.org
EPSS
GitHub
Exploit-DB