Highlights
Command Injection: 2 prior fixes. Scrutinize any change in this area.
nni/common/serializer.py: most-fixed (1 issue). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Command Injection: Allowing unrestricted generic configuration options like `preCommand` can lead directly to remote command execution. Replacing arbitrary shell options with strongly typed configurations like `pythonPath` is required to mitigate this risk.
Command Injection: Unescaped shell variables in remote mount commands can be exploited to inject arbitrary commands during remote environment initialization.
Deserialization: Using unsafe serialization frameworks like json_tricks with arbitrary object loading capabilities allows remote code execution via malformed payloads.