llamaCVEVulnerability Intelligence
/
n/a

CVE-2021-32546

Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely

Solo en configuraciones específicasParche disponible
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Fuente: NVD
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche el mismo día de la divulgación
Exposición1.635 dDesde la divulgación, 31 may 2022, 4:21 p. m.
Detección1.616 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir de cerca
Monitorear y programar la remediación
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Échale un ojo a tu inventario, ¿dale?Hmm… no me convence. Vigílala de cerquita.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche v0.12.8
Monitoreo
Detectada
Verificada
31 may 22
3 ago 24
3 nov 26
18 nov 26
22 nov 26
31 may 22
14 jul 23
26 ago 24
9 oct 25
22 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2021-32546 divulgada · CVSS 8.8 (NVD)
Remediación Parche v0.12.8 gogs.io/gogs · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote Command Execution, because that configuration can contain an option such as sshCommand, which is executed when a master branch is a remote branch (using an ssh:// URI). The remote branch can also be configured by editing the Git configuration file. One can create a new file in a new repository, using the GUI, with "\" as its name, and then rename this file to .git/config with the custom configuration content (and then save it).

¿Qué significa?A flaw in Gogs' repository editor lacks input validation, so a malicious user can write a crafted config file into a repository's .git directory. The advisory says this can lead to SSH access to the server.
¿Quién está afectado?All Gogs installations with repository upload enabled, which is the default setting, are affected, and the fix is in version 0.12.8. To check your version, run the Gogs binary with the version flag or look at the version shown in the web interface, and check whether repository upload is enabled in the application settings.
¿Qué hacer?Upgrade Gogs to 0.12.8 or the latest 0.13.0+dev, as the vendor advises.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Repository upload is enabled, which is the default setting.“All installations with repository upload enabled (default) are affected.”
¿Quién debe revisar?Teams running Gogs before 0.12.8 with repository upload enabled, which is the default.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · NVD
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
gogs.io/gogs< 0.12.8
0.12.8
v0.13.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogogs.io/gogs
Corregida v0.12.8 0 d v0.13.3 no afectada
Versiones corregidas0.12.8v0.12.8
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/gogs/gogs/security/advisories/GHSA-56j7-2pm8-rgmx
Otrahttps://github.com/gogs/gogs/releases

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.