Security vulnerabilities in leanrea's benchmark runner, specifically broad Bash permissions and unsafe cleanup.
Raw Developer Origin & Technical Request
GitHub Issue
Oct 17, 2026
Security review of commit `09ba4aa0217f82cd880f855a60b877f59f39b22b` identified two issues: broad tool preapproval in the benchmark runner, and an unquoted cleanup command that can delete unintended directories.
## 1. Broad Bash preapproval without enforced isolation in the benchmark
**Suggested severity: High, conditional on the execution environment and processing attacker-controlled artifacts.**
Source: [bench/run.py, lines 15–28](github.com/aicodeking/leanre...
The runner launches Claude with:
```text
--allowedTools Bash,Read,Grep,Glob,Write,Skill,mcp__rea
```
It does not itself enforce an OS sandbox or supply a filtered subprocess environment. Setting the working directory to a fresh copy of the targets does not isolate shell commands from the rest of the host.
According to the [Claude Code CLI reference](code.claude.com/docs/en/cli-refer... `--allowedTools` preapproves tools without prompting; it does not restrict the available tools. External deny rules, managed policies and any existing sandbox configuration can still apply.
**Potential impact:** if attacker-controlled strings, source or other content encountered during analysis successfully inject instructions into the agent, broad Bash preapproval could allow commands that access host files, inherited credentials or the network, subject to external restrictions. This is a risk scenario, not a demonstrated prompt-injection e...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from aicodeking/leanrea.
Frequently Asked Questions
Market intelligence mapped to Security vulnerabilities in leanrea's benchmark runner, specifically broad Bash permissions and unsafe cleanup..
What problem does Security vulnerabilities in leanrea's benchmark runner, specifically broad Bash permissions and unsafe cleanup. solve?
What are the foundational technologies related to Security vulnerabilities in leanrea's benchmark runner, specifically broad Bash permissions and unsafe cleanup.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like agent and network by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics