GHSA-7GMH-4FW6-8XC5
Export archives are orphaned on disk and never cleaned up
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-7GMH-4FW6-8XC5 divulgada · CVSS 4.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
## Summary
Full-data export archives (a user's projects, tasks, comments and attachments) pile up in file storage. A re-export, a failed export, or account deletion leaves the archive on disk indefinitely. Any authenticated user can grow storage by re-exporting, and data of deleted accounts stays on disk.
## Details
- `pkg/models/export.go:98` overwrites `ExportFileID` without deleting the previous file, and export jobs are not serialized.
- The expiry cron only reaps files referenced by a current pointer (`pkg/models/export.go:492`), so overwritten archives are never removed.
- When `ExportUserData` fails, the row is rolled back after the blob is already stored (`pkg/models/listeners.go:1745`).
- `DeleteUser` (`pkg/models/user_delete.go:135`) removes no files, neither the export archive nor `AvatarFileID` (`pkg/user/user.go:105`).
- Commit 29a6f26b4 fixed a different bug; the orphans it created on existing instances are still on disk.
## Impact
Gradual disk exhaustion by an authenticated user re-triggering exports (each archive includes all their attachments), and retention of personal data after account deletion or after the export should have expired. Orphaned archives are not reachable through the API.
## Fix
- Delete the previous export file in the same transaction as the pointer swap.
- Delete the stored blob when the export fails.
- Add the export and avatar files to `DeleteUser` cleanup.
- A cron that "reaps any expired export blob" can't work as written, because `files.File` (`pkg/files/files.go:40`) has no type marker. Add one, or do a one-off orphan sweep.
_Found via internal security review (f2 #5, 03 #6, deep #4)._
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-7gmh-4fw6-8xc5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
