Security context

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

rails/bootsnap
main @ f339860
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Insecure File Permissions: 1 prior fix. Scrutinize any change in this area.
bootsnap.c: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Insecure Temporary File: The use of predictable or unsafe temporary file creation APIs (like mktemp followed by open) creates a Time-of-Check to Time-of-Use (TOCTOU) race condition, allowing a local attacker to symlink or pre-create the target file.
Insecure File Permissions: Cache files written by the compiler could be created with overly broad permissions, allowing arbitrary local users to write to or modify cached bytecode and execute arbitrary code.