exec() call detected
High
- Category
- Dangerous Code Execution
- Content
# Execute script console.print(f"\n[cyan]Executing script...[/cyan]") try: exec(script_content, {"__builtins__": {}}, safe_namespace) console.print(f"\n[green]Script executed successfully[/green]") console.print(f"Output: {output_path}") except CADStackError as e:- Confidence
- 97% confidence
- Finding
- The run command executes user-supplied script content with Python's exec(). Although __builtins__ is emptied and comments call this 'sandboxed,' the script still receives powerful objects like a live backend instance and Path/output handles, and Python sandboxing via restricted globals is historically fragile and often bypassable through object introspection or methods exposed by injected objects.
