Security context

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

xmake-io/xmake
dev @ c8eecb9
25
Fixes
0
CVEs
HIGH
Peak severity
17.6%
Coverage
Highlights
Command Injection: 6 prior fixes. Scrutinize any change in this area.
xmake/modules/privilege/sudo.lua: most-fixed (4 issues). Treat as high-risk during review.
18 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: The sudo runner module frequently failed to safely construct command strings, allowing malicious environment variables (like PATH) to execute arbitrary commands under elevated privileges.
Sandbox Escape: Improper sandbox initialization, missing execution wrappers, and incomplete environment binding to callbacks and tasks allowed code execution escape from the intended sandbox.
Privilege Escalation: Improperly dropping or restoring real vs. effective user/group IDs allowed scripts to retain root privileges or fail to execute in the domain of the target project owner.