Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

microsoft/nni
master @ 767ed7f
3
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
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.