Security context

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

dstackai/dstack
master @ 740d871
43
Fixes
1
CVEs
HIGH
Peak severity
27.8%
Coverage
Highlights
Auth Bypass: 20 prior fixes. Scrutinize any change in this area.
runner/internal/executor/executor.go: most-fixed (3 issues). Treat as high-risk during review.
21 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.

Auth Bypass: Critical flaw in authorization logic where user roles were verified using weak substring inclusion ('in') instead of strict equality checks. This allowed administrative bypasses depending on global role names.
Path Traversal: Docker bind mounts were susceptible to directory traversal because absolute/root paths on the host were not rejected. This allowed unauthorized host directory exposure.
Command Injection: Improperly quoted shell arguments within a subprocess call during compute backend provisioning allowed command injection via arbitrary launch script execution parameters.