mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-08-24 11:43:50 -05:00
DetectCSVStructure, PreviewImport, and MigrateWithConfig each did make([]byte, size) with size taken directly from the caller (an uploaded file's declared size) with no upper bound, letting a malicious or corrupt size value force an arbitrarily large allocation. Cap it to the server's existing configured max upload size before allocating.