The Zero Day Initiative advisory ZDI-26-1060 discloses an unpatched vulnerability in Super Magic: a PHPSandbox command injection flaw that can let remote attackers escape the sandbox. The supplied advisory summary states that authentication is not required, assigns CVE-2026-136434, and carries a CVSS rating of 9.8. The practical reading for defenders is simple: if a Super Magic installation exposes PHPSandbox to untrusted networks, assume an unauthenticated attacker may be able to execute commands outside the intended sandbox boundary and treat exposure as an incident-risk condition, not a backlog ticket.
What makes this class of bug dangerous is not only command injection. It is the combination of reachability, no authentication, and a sandbox escape. A sandbox is usually the control that teams rely on when they must execute untrusted code, preview user-supplied logic, or evaluate snippets in a constrained PHP runtime. When that boundary fails, the attacker is no longer contained by disabled functions, restricted working directories, or other assumptions baked into the product. They may land in the PHP or web-service context first, then test whether they can read application secrets, write webshells, call outbound, or pivot into adjacent containers and hosts.
No fixed version, affected version range, or confirmed in-the-wild exploitation was included in the provided news summary. Do not fill that gap with guesswork. Treat the issue as unpatched and high priority until the vendor publishes a supported fix or ZDI updates the advisory. Check the ZDI page, the vendor channel, and the CISA Known Exploited Vulnerabilities catalog continuously; if CVE-2026-136434 is added to KEV later, federal and KEV-aligned timelines will change from best practice to mandatory deadline.
Affected products, versions, and platforms
Confirmed from the supplied item: affected installations of Super Magic that include the PHPSandbox component. The summary does not enumerate versions, build numbers, supported deployment models, operating systems, or whether managed hosting is affected. It also does not state whether exploitation requires a specific configuration beyond remote reachability. Because authentication is explicitly not required, any internet-facing, partner-facing, or broadly reachable internal PHPSandbox endpoint should be considered exposed until proven otherwise.
Operationally, inventory every place Super Magic is installed: application servers, container images, developer or QA instances, shared hosting, embedded appliances, and any service that was installed as a dependency rather than as a named product. In PHP estates, the runtime may be Apache with mod_php, nginx behind PHP-FPM, a containerized PHP image, IIS with PHP via CGI on Windows, or a vendor-bundled service. Your inventory question is not only where Super Magic is installed. It is where a process handling Super Magic PHPSandbox requests can spawn commands and where that process is allowed to write, read, or connect.
Technical analysis from the defender side
The disclosed weakness is PHPSandbox command injection with sandbox escape. In a normal defensive model, a sandboxed PHP execution path should constrain what attacker-controlled input can reach: dangerous functions should be unavailable, filesystem access should be narrowed, process creation should be blocked or heavily mediated, and outbound network access should be denied or proxied. A command injection flaw implies that input intended for sandboxed evaluation is being interpreted by a command execution layer or that attacker-controlled data is crossing into an unsafe invocation path. A sandbox escape implies the attacker can break out of the intended constraints and run commands in a context the product was supposed to prevent.
A realistic attack chain is: attacker reaches a PHPSandbox-capable endpoint; submits crafted input that survives validation or normalization; the input reaches an unsafe shell, eval-like, process, or plugin execution path; command syntax or argument injection causes execution beyond the intended snippet; sandbox restrictions fail; the attacker tests the boundary with benign probes such as id, whoami, env, pwd, or directory listing; then they move to payload retrieval, credential access, persistence, or lateral movement. The exact payload is unknown from the summary, so signature-only detection will be weak. Detect consequences: web and PHP workers spawning shells or utilities, new files in writable web and temp paths, unexpected egress from PHP processes, and logs showing requests that repeatedly probe command-execution behavior.
Exploitation requirements are favorable to attackers: network access only, no authentication, and no stated user interaction. A CVSS 9.8 is consistent with the worst-case impact of unauthenticated remote code execution. The supplied item does not confirm a public exploit, active exploitation, or CISA KEV inclusion. Do not describe it as confirmed exploited unless your telemetry or an authoritative update says so. The correct posture is high-risk unpatched exposure with emergency mitigations while you hunt for compromise.
Detection strategy
Do not deploy noisy rules that alert every time PHP runs. Anchor detections to a rare and suspicious relationship: a web or PHP worker process creating a shell, downloader, encoding utility, archive tool, or privilege-discovery command. Add context filters for known health checks, CI jobs, backup agents, and admin workstations. If your environment intentionally executes commands from PHP, build an allowlist before enabling high-severity alerting; otherwise this control will be disabled in a week.
---
title: Linux Web or PHP Worker Spawning Shell or Utility After PHPSandbox Exposure
description: Detects Linux web or PHP worker processes spawning command interpreters, downloaders, encoding tools, or discovery utilities consistent with command injection after sandbox escape. Tune for known health checks and CI jobs.
id: 9d4c2f70-26aa-4e11-b6df-cve2026136434
status: experimental
references:
- http://www.zerodayinitiative.com/advisories/ZDI-26-1060/
- https://attack.mitre.org/techniques/T1059/
- https://attack.mitre.org/techniques/T1203/
author: Security Arsenal
date: 2026/06/18
tags:
- attack.execution
- attack.t1059.004
- attack.t1203
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|contains:
- php-fpm
- php
- httpd
- apache2
- nginx
selection_child:
Image|contains:
- /bin/sh
- /bin/bash
- /bin/dash
- curl
- wget
- nc
- ncat
- python
- perl
- base64
- tar
- chmod
selection_cmd:
CommandLine|contains:
- ' id'
- ' whoami'
- ' env'
- ' pwd'
- '/tmp'
- '/var/tmp'
- 'curl '
- 'wget '
- 'base64 '
- ';'
- '&&'
- '|'
condition: selection_parent and selection_child and selection_cmd
falsepositives:
- Application health checks
- CI or deployment jobs
- Backup and maintenance scripts
level: high
---
title: Windows Web or PHP Process Spawning Command Shell or Script Engine
description: Detects IIS, Apache, nginx, or PHP CGI processes on Windows spawning cmd, PowerShell, curl, wget, or encoding utilities after possible PHPSandbox command injection. Scope to servers that host Super Magic or PHP execution services.
id: 41c8ab2d-7f0a-4bb3-9ce4-zdi261060
status: experimental
references:
- http://www.zerodayinitiative.com/advisories/ZDI-26-1060/
- https://attack.mitre.org/techniques/T1059/
- https://attack.mitre.org/techniques/T1203/
author: Security Arsenal
date: 2026/06/18
tags:
- attack.execution
- attack.t1059.001
- attack.t1059.003
- attack.t1203
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|contains:
- w3wp.exe
- httpd.exe
- nginx.exe
- php-cgi.exe
- php.exe
selection_child:
Image|contains:
- cmd.exe
- powershell.exe
- pwsh.exe
- curl.exe
- wget.exe
- certutil.exe
- bitsadmin.exe
- tar.exe
- whoami.exe
selection_cmd:
CommandLine|contains:
- ' whoami'
- ' id'
- 'Invoke-'
- 'IEX'
- 'DownloadString'
- 'FromBase64String'
- 'curl '
- 'wget '
- ';'
- '&&'
- '|'
condition: selection_parent and selection_child and selection_cmd
falsepositives:
- Legitimate PHP maintenance tasks
- Admin or deployment tooling
- Monitoring probes
level: high
let WebParents = dynamic(['php-fpm','php','httpd','apache2','nginx','php-cgi.exe','php.exe','w3wp.exe','httpd.exe','nginx.exe']);
let DangerChildren = dynamic(['sh','bash','dash','cmd.exe','powershell.exe','pwsh.exe','curl','wget','curl.exe','wget.exe','nc','ncat','python','perl','base64','certutil.exe','bitsadmin.exe','tar','chmod','whoami']);
DeviceProcessEvents
| where Timestamp > ago(7d)
| where (InitiatingProcessFileName in~ (WebParents) or InitiatingProcessCommandLine has_any ('php-fpm','httpd','apache2','nginx','php-cgi'))
| where (FileName in~ (DangerChildren) or ProcessCommandLine has_any (' whoami',' id',' env',' pwd','/tmp','/var/tmp','curl ','wget ','base64 ','Invoke-','IEX','DownloadString','FromBase64String'))
| where ProcessCommandLine !has_any ('healthcheck','warmup','backup-agent','monitoring-probe')
| summarize Count=count(), FirstSeen=min(Timestamp), LastSeen=max(Timestamp) by DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, AccountName
| order by LastSeen desc
-- Hunt for web and PHP workers whose command lines indicate shell execution, download, encoding, or discovery after a PHPSandbox escape.
SELECT Pid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE (Name =~ '(php|php-fpm|httpd|apache2|nginx|w3wp|php-cgi)' OR Exe =~ '(php|php-fpm|httpd|apache2|nginx|w3wp|php-cgi)')
AND (CommandLine =~ '(/bin/(sh|bash|dash)|cmd.exe|powershell.exe|pwsh.exe|curl|wget|nc|ncat|python|perl|base64|certutil|bitsadmin|tar|chmod|whoami|/tmp|/var/tmp)')
ORDER BY CreateTime DESC
For web telemetry, alert on clustered failures before success: repeated requests to PHPSandbox paths from one source, abrupt changes in user agent, request bodies containing shell metacharacters or encoded payloads, and responses followed within minutes by child-process execution from the PHP worker. A single odd request is weak. A burst of probing followed by a PHP child process is strong.
Immediate containment script
This Bash script audits likely PHP execution surfaces and can optionally apply conservative PHP hardening on Linux. It does not patch CVE-2026-136434. It reduces blast radius while you isolate or remove PHPSandbox exposure. Run audit mode first, review the output, then apply only on tested systems because disable_functions and open_basedir can break legitimate applications.
#!/usr/bin/env bash
set -euo pipefail
MODE=${1:-audit}
OUT=/tmp/zdi-26-1060-audit.txt
: > "$OUT"
printf '[+] Listing PHP and web processes\n' | tee -a "$OUT"
ps -eo pid,ppid,user,comm,args | grep -Ei 'php|php-fpm|httpd|apache2|nginx' | grep -v grep | tee -a "$OUT" || true
printf '[+] Listening sockets owned by web or PHP stacks\n' | tee -a "$OUT"
ss -lntp 2>/dev/null | grep -Ei 'php|httpd|apache|nginx' | tee -a "$OUT" || true
printf '[+] Recent files in tmp and web writable paths\n' | tee -a "$OUT"
for d in /tmp /var/tmp /var/www /srv/www; do
if [ -d "$d" ]; then find "$d" -type f -mmin -1440 2>/dev/null | head -200 | tee -a "$OUT"; fi
done
printf '[+] Dangerous child processes under web or PHP parents\n' | tee -a "$OUT"
ps -eo pid,ppid,user,comm,args | grep -Ei 'php|php-fpm|httpd|apache2|nginx' | tee -a "$OUT" || true
if [ "$MODE" = 'apply' ]; then
target=''
if [ -d /etc/php.d ]; then target=/etc/php.d/99-zdi-26-1060-hardening.ini; fi
if [ -d /etc/php/conf.d ]; then target=/etc/php/conf.d/99-zdi-26-1060-hardening.ini; fi
if [ -n "$target" ]; then
cat > "$target" <<'EOF'
disable_functions = system,exec,shell_exec,passthru,proc_open,popen,pcntl_exec
allow_url_include = 0
expose_php = 0
EOF
printf '[+] Wrote hardening ini: %s\n' "$target" | tee -a "$OUT"
printf '[!] Add a pool-specific open_basedir and restart PHP-FPM only after application validation.\n' | tee -a "$OUT"
else
printf '[!] No /etc/php.d or /etc/php/conf.d found; apply hardening in the correct php.ini or FPM pool manually.\n' | tee -a "$OUT"
fi
else
printf '[+] Audit complete. Re-run with apply only after change approval and staging validation.\n' | tee -a "$OUT"
fi
Remediation and mitigation
Primary fix: install the vendor-supported patch for CVE-2026-136434 as soon as Super Magic publishes one. The supplied advisory does not provide a fixed version number, so do not claim one internally or to customers. Track the official ZDI advisory at http://www.zerodayinitiative.com/advisories/ZDI-26-1060/, the vendor release channel, the CVE record at https://nvd.nist.gov/vuln/detail/CVE-2026-136434, and CISA KEV at https://www.cisa.gov/known-exploited-vulnerabilities-catalog. If the item enters KEV, apply KEV deadlines. Until then, treat an unauthenticated CVSS 9.8 sandbox escape on a reachable service as an emergency change: isolate within hours where feasible and complete compensating controls within 24 to 72 hours based on exposure.
If PHPSandbox is not required, disable or remove it. If it is required, put it behind authentication and IP allowlisting even though the flaw is unauthenticated; that reduces reachable population while the product remains vulnerable. Place a WAF or reverse proxy in front and virtual-patch aggressively: block request bodies and query strings containing command separators, subshell syntax, encoded command interpreters, and suspicious parameter names used for code, eval, command, exec, shell, or callback execution. Expect false positives in developer workflows; start in log-only for a short window, then enforce on internet-facing paths.
Harden the runtime as if the sandbox will fail: run PHP as a least-privilege user; disable system, exec, shell_exec, passthru, proc_open, popen, and pcntl_exec where application compatibility allows; set a restrictive open_basedir per pool; disable allow_url_include; make the web root read-only; mount tmp and var tmp noexec where feasible; remove compilers and download tools from execution containers; and deny outbound network from PHP workers except to approved update and API endpoints through a proxy. Apply seccomp, AppArmor, SELinux, container capabilities, and namespace isolation so that even if commands run, they cannot write webshells, read secrets, or call out.
Complete a compromise review before and after remediation. Review web access logs for PHPSandbox endpoints, process lineage for web and PHP workers spawning shells, outbound connections from the service account, new files in writable directories, changes to scheduled tasks and systemd units, and authentication logs for adjacent systems. If you find post-exploitation artifacts, preserve disk and memory evidence before restarting services, isolate the host, rotate secrets reachable from the application context, and open an IR case.
Related Resources
Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.