MOSS-Audio request-controlled processor cache permits remote memory exhaustion
Description
When vLLM serves a MOSS-Audio model, a client that can access the /tokenize endpoint can provide request-controlled mm_processor_kwargs.
MOSS-Audio uses these values to construct MossAudioProcessor instances and stores every distinct instance in an unbounded private dictionary. Each processor contains a WhisperFeatureExtractor with an allocated mel-filter array.
An attacker can therefore:
- Repeatedly submit distinct processor configurations to cause persistent linear memory growth.
- Supply oversized mel_config values to amplify the allocation made by a single request.
This can exhaust host memory and terminate or severely degrade the API process. /tokenize is intentionally outside vLLM’s API-key-protected route prefixes, so --api-key alone does not restrict access to this endpoint.
Details
TokenizeChatRequest accepts arbitrary mm_processor_kwargs (github.com/
The request reaches multimodal processing through:
- ServingTokenization.create_tokenize()
- OnlineRenderer.preprocess_chat()
- BaseRenderer._process_multimodal()
- MossAudioMultiModalProcessor._apply_hf_processor_main()
Although /tokenize sets skip_mm_cache=True, this only selects the read-only multimodal processor. Its MossAudioProcessingInfo object still maintains the vulnerable private cache.
The following request-controlled fields are used as cache-key components:
- audio_token_id
- audio_start_id
- audio_end_id
- enable_time_marker
- mel_config
MossAudioProcessingInfo.get_hf_processor() (github.com/
For every new key, it constructs a MossAudioProcessor (github.com/
The default mel-filter array has:
shape: (201, 128) dtype: float64 size: 205,824 bytes
Consequently, each unique default configuration retains approximately 206 KB in the mel-filter array alone.
Request-controlled mel_config can amplify this substantially. The bounded configuration:
{ "mel_dim": 512, "mel_n_fft": 1024 }
creates:
shape: (513, 512) dtype: float64 size: 2,101,248 bytes
The approximate final mel-filter allocation is:
(floor(mel_n_fft / 2) + 1) * mel_dim * 8 bytes
There are no effective upper bounds on these values. For example, mel_dim=65536 and mel_n_fft=65536 would attempt to allocate approximately 16 GiB for the final mel-filter array alone. This destructive value was not executed.
Clearing the normal multimodal processor cache does not clear _hf_processor_cache, so these processors remain reachable for the lifetime of the frontend process.
The project’s security documentation (github.com/
Suggested remediation is to reject request-level overrides of processor-construction parameters, validate strict upper bounds for mel dimensions, and either eliminate this dynamic cache or replace it with a small bounded cache that is also cleared by cache-reset operations.
Impact
An attacker who can reach a vLLM HTTP server serving a MOSS-Audio model can cause persistent attacker-controlled memory allocations in the frontend API process.
Repeated unique configurations cause linear retained-memory growth. Oversized mel_config values can also cause a very large allocation from a single request. Continued exploitation can terminate the process through out-of-memory exhaustion, resulting in denial of service.
The issue is limited to deployments serving a MOSS-Audio model. A reverse proxy that authenticates or rate-limits / tokenize can reduce exposure, but vLLM’s own --api-key setting does not protect this endpoint.