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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Gitea | Gitea | 1.19.0 – < 1.27.2 | 1.27.2 |
Advisories 1
- WID-SEC-2026-2863 Gitea: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 14, 2026
References
- GitHub Security Advisory GHSA-r9ch-mqjm-g67v vendor-advisory
- Gitea 1.27.2 release announcement release-notes
- Fix: go-gitea/gitea pull request #38886 patch
- Fix: go-gitea/gitea pull request #38897 patch
- go-gitea/gitea v1.27.2 release release-notes