CVE-2022-1884Gogs
Crítica 9.8 Sin autenticación
Seguir: esta CVE · Gogs · Gogs Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.2% probabilidad de explotación en 30 días · percentil 83
- Requiere autenticación
- No
- Publicada
- 15 nov 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
A remote command execution vulnerability exists in gogs/gogs versions <=0.12.7 when deployed on a Windows server. The vulnerability arises due to improper validation of the `tree_path` parameter during file uploads. An attacker can set `tree_path=.git.` to upload a file into the .git directory, allowing them to write or rewrite the `.git/config` file. If the `core.sshCommand` is set, this can lead to remote command execution.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Gogs.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.12.8 |
0.12.8 |
go get gogs.io/gogs@v0.12.8 |
| Go | gogs.io/gogs |
< 0.12.8 |
0.12.8 |
go get gogs.io/gogs@v0.12.8 |
Según OSV / GitHub Advisories (GHSA-958j-443g-7mm7, GO-2022-0749). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| gogs | gogs | ≤ 0.12.7 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- huntr.com Exploit Third Party Advisory