subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
mem0_script = HOME / ".openclaw/skills/mem0/list.py" if mem0_script.is_file(): try: result = subprocess.run( ["python3", str(mem0_script)], capture_output=True, text=True, timeout=15 )- Confidence
- 92% confidence
- Finding
- The code executes an external Python script from a user-writable skill directory (`~/.openclaw/skills/mem0/list.py`) during analysis. If that file is replaced or tampered with, running the usage analyzer will execute attacker-controlled code with the current user's privileges, turning a read-only diagnostic action into code execution.
