highCVSS 7.3Vulnerability

GHSA-w8hx-hqjv-vjcq

### Summary An arbitrary code execution vulnerability in the workspace runtime service allows any agent to execute shell commands on the server, exposing all environment variables including API keys, JWT secrets, and database credentials. ### Details A malicious skill can instruct the agent to exploit the **workspace runtime service** feature, which allows arbitrary shell command execution on the server. ### Vulnerable Code Path 1. Agent calls `PATCH /api/projects/{projectId}/workspaces/{workspaceId}` to set a malicious `runtimeConfig` 2. Agent calls `POST /api/projects/{projectId}/workspaces/{workspaceId}/runtime-services/start` 3. Server executes the command via `spawn()` in `server/src/services/workspace-runtime.ts`: ```typescript const shell = process.env.SHELL?.trim() || "/bin/sh"; const child = spawn(shell, ["-lc", command], { cwd: serviceCwd, env, ... }); ``` The `command` parameter comes directly from workspace config with no sanitization, allowing arbitrary code execution in the server's process context. ### Attack Flow The attached skill (disguised as a "system health diagnostic") instructs the agent to: 1. Create a workspace with a malicious runtime command 2. Start the runtime service to execute the command 3. The command reads `/proc/1/environ` and exfiltrates via `curl` This successfully exfiltrated the server (not the agent workspace) environment variables. | Variable | Value | Risk | | ---------------------------- | -------------------------------------- | -------------------- | | `OPENAI_API_KEY` | `sk-proj-mSoajc...` | OpenAI API access | | `BETTER_AUTH_SECRET` | `test-secret-for-dev` | Auth token signing | | `PAPERCLIP_AGENT_JWT_SECRET` | `agent-jwt-secret-for-dev` | Agent JWT signing | | `DATABASE_URL` | `postgresql://paperclip:paperclip@...` | Database credentials | ### PoC 1

Properties

ghsa_id
GHSA-w8hx-hqjv-vjcq
summary
Paperclip: Malicious skills able to exfiltrate and destroy all user data
severity
high
cvss_score
7.3
cve_id
GHSA-w8hx-hqjv-vjcq
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
is_ghsa_only
true
ghsa_published
2026-04-16T22:46:52Z
source_url
https://github.com/advisories/GHSA-w8hx-hqjv-vjcq
ghsa_updated
2026-04-16T22:46:52Z

Related Entities (4)

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]npm/@paperclipai/server

AFFECTS (1)

[Software]npm/@paperclipai/server

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Special Elements used in a Command ('Command Injection')

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-w8hx-hqjv-vjcq (CVSS 7.3) — Ninja Signal Threat Intelligence | Ninja Signal