GHSA-P697-WQ4X-GRPJ
Unbounded bucket count causes per-bucket query fan-out on kanban reads
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-P697-WQ4X-GRPJ divulgada · CVSS 4.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
A project writer (manual buckets) or a view admin (filter-mode buckets) can create an arbitrary number of kanban buckets. Every subsequent kanban read of that view then runs one task SELECT plus COUNT per bucket.
Details
- `ProjectView.BucketConfiguration` has no length cap (`pkg/models/project_view.go:175`), and `validateProjectViewFilters` (`:317`) does not bound it.
- `Bucket.Create` (`pkg/models/kanban.go:314`) has no per-view count cap and needs only project write access (`pkg/models/kanban_permissions.go:31`).
- Reading the buckets-with-tasks endpoint loops over all buckets and queries each one (`pkg/models/kanban.go:232-260`).
The queries are parameterized; this is a resource issue, not SQL injection. It is distinct from GHSA-pmr6-968f-34v3, which concerned `per_page` being applied per bucket; here the multiplier is the stored bucket count itself.
Impact
Each kanban read of the affected view costs N query pairs, so a view with thousands of buckets makes every page load by any member expensive and lets a single user generate heavy DB load with cheap repeated reads. Any user can do this in their own project.
Fix
Cap at write time: limit `len(BucketConfiguration)` (around 50) in `validateProjectViewFilters`, and add a per-view manual-bucket cap in `Bucket.Create`. A read-time cap would leave the oversized state stored.
_Found via internal security review (03 #27)._
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-p697-wq4x-grpjLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
