GHSA-MQQ8-869V-48Q8
Vikunja-file ZIP import has no entry-count cap
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-MQQ8-869V-48Q8 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Any authenticated user can upload a Vikunja export ZIP with a very large number of empty or non-`files/` entries. These entries slip past the per-entry counters, so the importer indexes and walks all of them, twice.
Details
- `scanArchive` (`pkg/modules/migration/vikunja-file/vikunja.go:302`) counts and caps only entries under `files/` (`:313-317`, `migration.vikunjafile.maxfiles`).
- The uncompressed-size sum covers all entries (`:357-361`), but empty entries add nothing to it.
- There is no cap on `len(r.File)`. The archive is opened and scanned once in `ValidateFile` (`:378`) and again in `Migrate` (`:399`).
Impact
CPU and memory spent on the central directory and the scan loops grow with the entry count. The cost is linear in upload size (about 76 bytes per entry) and bounded by the request body limit, so this is a low-severity amplification, not an unbounded one. It is distinct from GHSA-4488-4v6c-636h (repeated expansion of one member) and GHSA-wf65-77gj-m74h / GHSA-qh78-rvg3-cv54 (forged `Size` field).
Fix
Cap `len(r.File)` right after opening the archive. This bounds the scan loops, but it comes too late for memory: `zip.NewReader` (`:290`) has already allocated an entry for every central-directory record. Low priority.
_Found via internal security review (f2 #6, deep #30)._
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-mqq8-869v-48q8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
