GHSA-9HXW-PXCQ-4Q8Q
Image decodes have no concurrency bound
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-9HXW-PXCQ-4Q8Q divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
An authenticated user sends a few concurrent tiny, highly compressible PNGs to the avatar or project background upload and costs the server gigabytes of memory: each one is fully decoded at up to 50 MP, about 200 MB RGBA or 400 MB at 16-bit.
Details
Avatar upload (`pkg/modules/avatar/upload/upload.go:148-160`), the OIDC avatar (`pkg/utils/avatar.go:43-48`) and background upload (`pkg/modules/background/handler/background.go:270-287`) all decode after `ValidateConfig` (`pkg/modules/imageutils/image.go:25-35`), which caps each image's dimensions but not how many decodes run at once. The decode semaphore from PR #4146 only covers `pkg/models/task_attachment.go`.
Impact
Low. Needs an account. A handful of parallel uploads can push the API process into memory pressure or an OOM kill, depending on available memory. The per-image cap (GHSA-4vh2-39rq-rq8j) bounds each request.
Fix
Move the PR #4146 semaphore into `imageutils` as the only decode entry point (validate, acquire by pixel count, decode, release), and route the attachment, avatar, OIDC avatar and background sites through it. Optionally lower `MaxPixels`.
PR #4201 (open) does this via `imageutils.Decode`, answering 503 (error 4040) when busy. Known gaps per the PR: LDAP login fails with 503 when busy (OIDC skips the avatar instead), and the avatar, background and OIDC paths use a non-request `context.Background()`.
_Found via internal security review (deep #29)._
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-9hxw-pxcq-4q8qLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
