Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Gitea / Gitea | affected 1.19.0 before 1.27.2 |
CWE
CWE-94, CWE-829
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-r9ch-mqjm-g67v
- https://blog.gitea.com/release-of-1.27.2/
- https://github.com/go-gitea/gitea/pull/38886
- https://github.com/go-gitea/gitea/pull/38897
- https://github.com/go-gitea/gitea/releases/tag/v1.27.2
ADP enrichment
No English description supplied.
No references supplied.