Skip to content

Fix RCE via custom tool input_model #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

rishsriv
Copy link
Member

@rishsriv rishsriv commented May 20, 2025

Fixes #496, a critical security bug on an endpoint meant for testing.

Summary

  • validate input_model definitions for custom tools
  • restrict builtins when executing user supplied model code
  • load and execute custom tool models without using temp files

Testing

  • pytest tests/backend_routes/test_tools.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant