CVE-2026-125423
Gitea command execution via repository auto-initialization
A user allowed to create repositories can run commands as the system user by using a symlink during setup.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: CISA-ADP
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-125423 divulgada · CVSS 8.8 (CISA-ADP) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: PoC-in-GitHub | Registro visto por primera vez en PoC-in-GitHub | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| 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 versions affected by this bug let a user who is allowed to create repositories run commands as the Gitea system user. The flaw is in repository auto-initialization: a push sent before setup finishes can use a symbolic link to overwrite a server-side git hook.
Affects Gitea versions before 28.4.0 on servers where repositories are created with auto_init=true using the Default README template. Fixed in 28.4.0.
Descripción original del registro (Gitea)
A repository created with auto-init accepted pushes before its initialization had finished, and the initial commit was built in a checkout of whatever the repository already contained. A user who is allowed to create repositories could push a crafted tree during that window so that writing the README followed a symbolic link and overwrote a server-side git hook, which runs commands as the Gitea system user. The initial commit is now built in a freshly initialized directory, and a new repository only becomes ready, and accepts pushes, once its initialization is complete.
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.4.0Arsenal público
Ver los 1 repositorios de GitHub
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946https://blog.gitea.com/release-of-28.4.0/https://github.com/go-gitea/gitea/pull/40376https://github.com/go-gitea/gitea/pull/40383https://github.com/grigorovichvlad/CVE-2026-125423https://github.com/go-gitea/gitea/releases/tag/v28.4.0Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
