Super Magic's PHPSandbox endpoint breaks the execution boundary
A sandbox is useful only while the service behind it enforces the boundary. ZDI-26-1060 describes an unauthenticated command injection flaw in Super Magic's PHPSandbox endpoint. The advisory assigns CVE-2026-136434 and a CVSS score of 9.8. ZDI says the issue results from inadequate validation of a user-supplied string before PHP code is executed. An attacker can escape the sandbox and run code as the service account.
The name creates a false sense of containment. A PHP sandbox endpoint receives code or code-like input from a caller. It must enforce which language constructs, files, subprocesses, network paths, and operating-system calls are available. If validation fails before execution, a crafted request can move from the sandbox's intended language subset into the host process. The ZDI advisory does not publish the full request sequence or a complete list of affected deployment models. Those gaps should remain visible during incident review.
Authentication is the first question. The published description says the exploit does not require authentication. Check whether the PHPSandbox endpoint is reachable from the internet, from a shared internal network, or only from an isolated application tier. Network position can reduce practical exposure, but it does not fix the missing input validation. Next, identify the service account running Super Magic and list its readable files, writable paths, environment variables, database credentials, and access to other services. The blast radius is defined by that account, not by the word sandbox.
The public advisory does not list a fixed version. Treat that as a remediation blocker that requires vendor confirmation. Until a supported fix is available, disable the PHPSandbox feature or place the endpoint behind an authenticated gateway with strict request-size and input restrictions. Run the service with a dedicated low-privilege account, remove unnecessary secrets from its environment, and separate it from management networks. Add logging for unusual PHP child processes, shell execution, file reads outside the application tree, and outbound connections from the service host.
If the endpoint has been exposed, review requests and process creation logs around the entire exposure window. Compare service-account behavior with deployment activity. Look for new files, altered application code, credential access, and connections to unfamiliar destinations. A clean endpoint log is weak evidence when process auditing is absent.
The engineering lesson is direct. Code execution endpoints need an allowlist of operations, not a blocklist of dangerous strings. They also need a process boundary, filesystem isolation, and a credential model that assumes input can become hostile. Calling the interface a sandbox should not replace those controls.
Top comments (0)