Terminal Tool Allowlist Bypass via Environment Variables
CVE-2026-22708 · GHSA-82wg-qcm4-fp2w · published 2026-01-14
- Severity
- High
- CVSS score
- Not scored
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 2.3
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
Works on any workspace where the agent runs in the non-default Auto-Run Mode + Allowlist mode and the victim executes commands that depend on environment variables, and can lead to bypassing the command allowlist. When chained with a prompt injection or malicious model vulnerability, this can lead to arbitrary code execution.
Upgrade cursor to 2.3 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Terminal command parsing around edge cases was improved.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| cursor | App | <= 2.2 | 2.3 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalCursor Desktop sandbox escape via agent-controlled working directorycursor
- CriticalCursor Desktop sandbox escape via symlink and failed path canonicalizationcursor
- HighSandbox escape via tampered Python virtual environmentscursor
- HighSandbox escape via launching privileged containerscursor
- HighCursor Desktop sandbox escape via Claude hook configurationcursor
- HighSandbox escape via Git hookscursor
The impact, patch and workaround text comes from the advisory, shortened (published by Cursor). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.