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.