An unauthenticated MQTT client can cause the server to consume excessive memory by sending large incomplete MQTT CONNECT packets. The server retains these packets while the parser waits for the advertised packet length to be completed before authentication is finalized, leading to memory exhaustion.