Summary
Before version 0.0.70, Heym's skill executor ran skill-provided Python in a local backend subprocess without Docker isolation, unlike its separate Python tool executor. If an attacker can supply or influence a skill that gets executed, its code may access the backend's filesystem, network, and environment; deployments running the backend as root with the Docker socket mounted may also expose the host to root-level compromise.
Affected context
The issue is in Heym's skill Python executor, which runs code through a local backend subprocess without the Docker sandbox used for the separate Python tool executor. A 512 MB memory limit and a limited environment-variable denylist do not provide filesystem or network isolation. The impact depends on who can create, modify, or trigger skills and on the backend's privileges; the shipped Docker configuration runs the backend as root and mounts the Docker socket, which can make host-level compromise possible.
Exploit preconditions
- Attack surface: The skill execution feature and its local backend subprocess.
- Required access: A way to supply or modify a Python skill, or otherwise cause attacker-influenced skill code to be executed.
- Trigger point: The backend runs the affected skill.
- Why exploitation is possible: The skill process runs in the backend execution context without Docker isolation, leaving filesystem access, network egress, and environment variables outside the denylist available to it. The consequences depend on the backend's privileges and mounted resources.
Why this happens
Heym applies a strong isolation boundary to one untrusted-code execution path but not to its sibling skill executor. Running skill-provided Python as a local subprocess does not isolate it from the backend's filesystem, network, or privileges; a memory limit and a short environment-variable denylist do not replace a sandbox. This is an insufficiently constrained code execution pattern associated with CWE-94: Improper Control of Generation of Code. Where the process inherits excessive privileges or sensitive resources, CWE-269: Improper Privilege Management also describes the risk.
Potential impact
- Untrusted skills may read or alter files accessible to the backend.
- Skill code may communicate over the network or access environment variables not covered by the denylist.
- A compromised backend process could expose application data, credentials, or other services.
- In deployments where the backend runs as root with the Docker socket mounted, an attacker could potentially gain control of the host.
General mitigation guidance
Defensive designs should run untrusted skill code in a dedicated, strongly isolated execution environment rather than inheriting the backend's context. Apply least privilege and secure-by-default resource restrictions, including limiting filesystem access, network egress, credentials, and access to container-management interfaces. Reduce trust in skill inputs, validate and constrain what can be executed, and avoid exposing sensitive environment variables to skill processes. Resource limits can supplement these controls but should not be treated as a substitute for isolation.
How teams detect issues like this
- Use static analysis and code review to find subprocess-based execution of skill or user-supplied code that lacks an explicit sandbox boundary.
- Review whether skill processes inherit backend credentials, environment variables, filesystem mounts, network access, or elevated privileges.
- Enforce policies requiring untrusted-code execution to use an approved isolated runtime and prohibiting unnecessary Docker socket mounts or root execution.
- Monitor skill execution and backend processes for unexpected file access, network connections, or use of container-management interfaces.
- Automated code review tools may help flag unsafe execution patterns for human assessment.

