Description
Coze Studio before 0.5.0 contains an insecure default configuration that allows any registered user to execute commands by running workflow code nodes in an unsandboxed python3 subprocess. Attackers can bypass the regex import filter with __import__('subprocess') to run commands, stealing environment variables, model API keys, and accessing MySQL, MinIO, Redis and etcd.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| coze-dev | coze-studio | < 0.5.0 | 0.5.0 |
References
- Lasso.security Advisory technical-description exploit
- https://github.com/coze-dev/coze-studio/commit/fcf40d1008c100108c23be051a49950283f2c2cf patch
- https://github.com/coze-dev/coze-studio/blob/ffec252d9e2600f61d49b8228a642335e84d5496/docker/.env.example#L234 technical-description
- VulnCheck Advisory: Coze Studio before 0.5.0 RCE via Unsandboxed Local Python Code Runner third-party-advisory