CVE-2026-118386
Gitea authorization bypass in Actions review-triggered workflows
A user with only read access can run a workflow that reaches Actions secrets and a token with repo write access.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Fuente: CISA-ADP
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-118386 divulgada · CVSS 6.5 (CISA-ADP) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Gitea, the self-hosted Git service, is affected when its Actions feature runs workflows triggered by pull request reviews. An attacker with only read access to a repository could run their own workflow there, gaining access to that repository's and its owner's Actions secrets and a token with write access to the repository.
Affects Gitea 1.19.0 through versions before 28.3.0 where a runner serves the repository and a pull request has its head branch in the repository itself. Fixed in 28.3.0.
Descripción original del registro (Gitea)
Workflows triggered by a pull request review were read from the commit named in the review's `commit_id`, while the fork restrictions were decided by the reviewed pull request, and the commit was not checked to belong to that pull request. A user with read access to a repository could place a commit of their own in it, through a fork pull request or an AGit push, and submit a review naming that commit on a pull request whose head branch is in the same repository. On instances with a runner serving the repository, the attacker's workflow then ran without approval, received the Actions secrets of the repository and its owner, and got a `GITEA_TOKEN` with write access to the repository. Review-triggered workflows now run on the pull request head.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogitea.dev |
Sin parche | — | — | v1.27.3 afectada |
28.3.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/go-gitea/gitea/security/advisories/GHSA-32h8-5xqg-h466https://blog.gitea.com/release-of-28.3.0/https://github.com/go-gitea/gitea/pull/40099https://github.com/go-gitea/gitea/pull/40117https://github.com/go-gitea/gitea/releases/tag/v28.3.0Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
