HIGH8.4
PYSEC-2025-253
Quick fix
PYSEC-2025-253 — max: upgrade to the fixed version with the command below.
pip install --upgrade 'max>=25.6.0'Details
Unsafe Deserialization vulnerability in Modular Max Serve before 25.6, specifically when the "--experimental-enable-kvcache-agent" feature is used allowing attackers to execute arbitrary code.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/modular/modular/blame/main/max/serve/kvcache_agent/kvcache_agent.py#L220[WEB]
- https://github.com/modular/modular/commit/10620059fb5c47fb0c30e5d21a8ff3b8d622fba4[FIX]
- https://github.com/modular/modular/commit/b20e749fa892dbe772e890a268002f732164d9f5[FIX]
- https://github.com/modular/modular/commit/ee9c4ab02345dd30bed8b79771b6909ff1b930a1[FIX]
- https://github.com/modular/modular/issues/4795[FIX]
- https://www.oligo.security/blog/shadowmq-how-code-reuse-spread-critical-vulnerabilities-across-the-ai-ecosystem[EVIDENCE]