GHSA-HRW2-P27J-8MJ8
Plugin and log directories not re-anchored to the rootpath
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-HRW2-P27J-8MJ8 divulgada · CVSS 3.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
When `service.rootpath` changes after the defaults are set (a config file pinned with `--config`, or any config/env override of the rootpath), Vikunja loads plugins from the startup working directory and writes its logs, including `audit.log`, there instead of under the rootpath. Packaged units set `WorkingDirectory=/opt/vikunja`, so packaged installs aren't affected.
Details
`PluginsDir` (`pkg/config/config.go:541`) and `LogPath` (`:468`) get their defaults from `ResolvePath` before the config is loaded. `anchorRootpathToConfigFile` recomputes `DatabasePath` (`config.go:700-702`) but not `PluginsDir` or `LogPath` (the latter is also used by `pkg/audit/writer.go:56`). A relative `plugins.dir` is never resolved against the rootpath (`pkg/plugins/manager.go:63`), unlike `files.basepath` (`pkg/files/filehandling.go:47`).
Impact
Low. Needs a non-packaged deploy started from a directory other than the rootpath. Logs and the audit log end up in an unexpected, possibly more widely readable directory. With plugins enabled (off by default), the working directory becomes the plugin search path, so anyone who can write there gets code loaded into the server. Plugins are off by default, so the log path is the more common case.
Fix
Recompute `PluginsDir` and `LogPath` alongside `DatabasePath`, and resolve a relative `plugins.dir` the way `files.basepath` is resolved.
_Found via internal security review (f2 #9, deep #12)._
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gocode.vikunja.io/api |
Sin parche | — | — | v0.24.6 afectada |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/go-vikunja/vikunja/security/advisories/GHSA-hrw2-p27j-8mj8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
