MISP accepted compressed HTTP request bodies (gzip, brotli, zstd) and decompressed them before authentication was performed, with no limit on the size of the resulting decompressed data. An unauthenticated attacker could send a small compressed payload that expands to a very large decompressed body, exhausting server memory and causing a denial of service. Brotli and zstd, with their high compression ratios, made the attack particularly effective.
The vulnerability required no authentication and no special conditions beyond the ability to send an HTTP request with a Content-Encoding header. The impact is a complete loss of availability for the affected MISP instance.
Affected: MISP versions prior to 2.5.52.
The fix enforces two security controls: (1) compressed request bodies are now decoded only after successful authentication, and unauthenticated requests carrying a Content-Encoding header are rejected with a 400 error before any decompression occurs; (2) gzip decompression is performed incrementally in small slices with a configurable maximum decompressed size (defaulting to the PHP memory limit), returning HTTP 413 when the limit is exceeded. Brotli and zstd support is removed entirely because their high compression ratios make slice-based bounding ineffective.