Security context

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

bazelbuild/bazel
master @ bf49a0e
72
Fixes
0
CVEs
HIGH
Peak severity
93.5%
Coverage
Highlights
Auth Bypass: 12 prior fixes. Scrutinize any change in this area.
CommonPrerequisiteValidator.java: most-fixed (3 issues). Treat as high-risk during review.
54 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.

Sandbox Escape: Recurring failure to fully isolate sandboxed actions: writable paths not symlink-resolved, cgroup writes allowed, bind mounts unvalidated, and missing sandboxing in remote worker. Each fix closes one escape vector but sibling paths remain.
Auth Bypass: Visibility and allowlist checks are repeatedly bypassed through rule extension, macro delegation, deserialization losing declaration context, and incorrect cache keys. The pattern is that the 'owning' rule or declaring macro is not correctly identified, so checks apply to the wrong scope.
Path Traversal: Path traversal appears in diverse components: repository rules, output path validation, worker mnemonics, remote symlink handling, and runfiles. The common theme is insufficient path containment or character validation before using paths in filesystem operations.