Heymrun heym
heym Python Tool Sandbox Escape
Heym builds and runs agentic systems and business-process automations on self-hosted infrastructure. Prior to 0.0.40, an authenticated user who can create or edit a workflow with an Agent custom Python tool can bypass the blacklist-based sandbox in backend/app/services/python_tool_executor.py because allowed standard-library modules expose operating-system, process, and filesystem capabilities through public attributes that pass _safe_import() and _validate_code_safety(). The runner then executes the supplied tool with exec(), permitting commands and file operations as the backend application user; self-registration affects reachability, but portal triggering alone does not grant code control. This issue is fixed in 0.0.40.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.0.40
Fixed in 0.0.40
Mitigation
Upgrade heym to 0.0.40 or later.
References
- Vendor advisory github.com/heymrun/heym/security/advisories/GH…
- Patch github.com/heymrun/heym/commit/b36d795c6ea841b…
- Release notes github.com/heymrun/heym/releases/tag/v0.0.40
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.