GHSA-9RFW-7HV4-3VV3
Local file storage blobs and SQLite database are world-readable
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-9RFW-7HV4-3VV3 divulgada · CVSS 5.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
On a shared host, other local OS users can read Vikunja's stored attachments, project backgrounds, exports and the SQLite database (including password hashes), because the files are created world-readable.
Details
- `localStorage.Write` (`pkg/files/storage_local.go:63-88`) writes through a temp file opened with mode `0666`, which the usual 022 umask turns into `0644`, then renames it into place. It deliberately avoids `os.CreateTemp` to keep that mode (comment at `:72`). Released versions up to 2.7.0 used `os.Create`, with the same result.
- The temp dir (`:68`) and the storage base dir (`:106`) are created `0755`.
- There are no other blob write paths. The export temp file already uses `os.CreateTemp` (`0600`, `pkg/models/export.go:41`).
- The shipped `vikunja.service` sets neither `UMask=` nor `User=`. The SQLite file is created with the driver default mode.
Impact
Deployment-dependent. On a single-purpose container or VM there is no other local user and no exposure. On a shared host, any local account can read every user's attachments and exports and copy the SQLite DB, which holds password hashes and other secrets, enabling offline cracking.
Fix
Create blobs `0600` and the storage dir `0700` explicitly. Set `UMask=0077` in the systemd unit; it is the only thing that also covers the SQLite file. Add a one-off chmod for existing files and directories, since `Ensure` only creates a missing dir.
_Found via internal security review (f2 #4, 04 #2)._
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-9rfw-7hv4-3vv3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
