TRENDING
The sun setting over the sea behind a pyramid-shaped stone monument at Cape Soya, the northernmost point of Japan
November 23, 2026
How to Retire an API Endpoint in FastAPI: Send Deprecation and Sunset Headers, Find the Clients Still Calling It, Schedule Brownouts, and Block an Early Removal With oasdiff
Brass sextant in an open wooden case inside a museum display, an instrument for measuring the angle to the horizon
November 23, 2026
MIT Technology Review’s “Most Misunderstood Graph” Update Reports METR’s Judgment Findings Mostly Fairly, but It Never Says Each Point Is a 50% Success Rate or Gives the New 3.6-Month Doubling Time and 2.1 to 4.9 Month Range, and It Credits OpenAI With a Comparison METR Built
Brass telescope on a wooden tripod inside a white observatory dome with the roof slit open to the sky
November 23, 2026
Rackspace Says Leaked Credentials Let an Intruder Act as Legitimate Users in Some Spot Customer Organizations and Reach Their Kubernetes Secrets, a Platform9 Co-Founder Names a Breached Observability System as the Root Cause, and the Status Page Says Only “System Maintenance Operations”
A person sweeping a metal detector across a wet sandy beach with a sea fort on the horizon
November 23, 2026
How to Write YARA Rules With YARA-X to Hunt Malicious Python .pth Startup Files and Measure False Positives Before You Trust Them
A peeling black-and-white metal door standing ajar, with a dark empty hall and bright windows beyond
November 23, 2026
AWS’s “Found a Zero-Day on Their Own” Post Never Names the Product; the Advisory Behind Its Link Shows a Server That Ships With No Login, a README Now Saying Keep It Off the Internet, and a Fix Merged October 19 That PyPI and Docker Hub Still Do Not Carry
23 Nov 2026
SXZ.io SXZ.io
  • Home
Search the Site
Popular Searches:
Technology Amazon AI
Recent Posts
A chalkboard covered with handwritten equations and a boxed inequality, standing for a mathematical proof
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
November 22, 2026
Wooden folding rule showing a Burgos-inch scale above a centimetre scale, resting on a stone beside a lake
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
November 22, 2026
A fallstreak hole, a round gap punched through a layer of thin cloud, with deep blue sky showing inside it, a tree on the right and a rooftop edge at the bottom left
GL.iNet Replaced Its Advice to Factory-Reset Every Router and KVM With a Check for One Process, but a 199-Router Survey Found That Process on None, and Sunday’s First Stable Fixes Left Out the Slate AX Model With Most of the Root Shells
November 22, 2026
SXZ.io SXZ.io
  • Home

Categories

Articles 311 Posts
News 317 Posts
Learning Hub 283 Posts
Home/Articles/Docker’s Latest Horror Story Turns a Patched Cursor Bug Into a Sandboxing Argument
Articles

Docker’s Latest Horror Story Turns a Patched Cursor Bug Into a Sandboxing Argument

A patched Cursor vulnerability shows how a shell built-in can quietly rewrite what an approved command does, and Docker is using the case to argue coding agents need execution-layer isolation, not...

August 19, 2026 4 Min Read
85

Docker published the fifth installment of its “AI Coding Agent Horror Stories” series on August 18, and this one is about the safety net most teams lean on when they let an AI coding agent run shell commands with minimal supervision: the command allowlist. The post, written by Docker’s Ajeet Singh Raina, revisits a patched Cursor vulnerability to make the case that an allowlist only ever checks the name of a command, not what that command actually does once it runs, and that gap was enough to defeat it completely.

Table Of Content

  • An approval prompt that didn’t tell the whole story
  • A “systemic issue” with a slow fix
  • Docker’s pitch: contain the execution, not just the approval
  • Why this outlasts one Cursor patch

An approval prompt that didn’t tell the whole story

The vulnerability is CVE-2026-22708, disclosed publicly by Pillar Security researcher Dan Lisichkin on January 14, 2026. It affects Cursor’s Agent when running in Auto-Run Mode with Allowlist mode enabled, a configuration meant to let routine commands through automatically while still prompting a developer for anything unfamiliar. According to GitHub’s security advisory, “certain shell built-ins can still be executed without appearing in the allowlist and without requiring user approval.” Cursor rated the issue High severity and fixed it in version 2.3.

Docker’s post walks through the mechanics with a two-line example. Programs commonly read configuration from environment variables at startup: Git checks one called PAGER to decide how to display its output. The first line quietly sets that variable:

# This one runs silently. You are never asked.
export PAGER="open -a Calculator"

# This one you are asked about, and you say yes, because obviously.
git branch

The export command never shows up on the allowlist and never triggers a prompt, because Cursor’s checker was built to recognize programs on disk, and shell built-ins such as export, typeset, and declare are not files sitting on disk to check. By the time the developer sees and approves the completely ordinary-looking git branch, the environment has already been rewritten. Git looks up PAGER, finds the attacker’s payload sitting in it, and runs that instead. There is no memory corruption and no privilege escalation involved, just a command whose meaning was changed a minute before it was shown to a human for a decision.

Pillar’s research found the technique worked even against a completely empty allowlist, the most restrictive setting Cursor offers. An allowlist can only ever check whether a command’s name appears on a list; it has no way to know what that command will actually do once environment state has already been altered by something the check never saw in the first place.

A “systemic issue” with a slow fix

Pillar’s own account of the disclosure describes reporting the bug to Cursor in August 2025. By September, Pillar’s timeline says, Cursor had acknowledged the report reflected a “systemic issue” with “two major initiatives underway” to address it, though Pillar does not name who at Cursor made that statement. Public disclosure followed on January 14, 2026, and Cursor’s eventual fix requires explicit user approval for any command its server-side parser cannot classify, rather than silently letting an unclassified shell built-in run without one. Pillar’s researchers were direct about what they think the durable fix looks like: “The right way to handle this issue is to allow full command execution to all agents in an isolated or sandbox environment and deprecate the use of allowlists completely.”

Docker’s pitch: contain the execution, not just the approval

Docker is using the case to argue for its own answer to that problem. Docker Sandboxes runs a coding agent’s shell inside an isolated microVM rather than directly on a developer’s machine, so the operative question stops being “was this specific command approved” and becomes “what can this sandboxed process reach at all,” regardless of which built-in quietly changed which variable. Docker’s sbx command-line tool exposes that boundary directly: sbx policy ls shows what a given sandbox can currently reach, and a pair of commands like sbx policy deny network "**" followed by sbx policy allow network "github.com,registry.npmjs.org" narrows that down to only what a specific task needs.

That local control has a ceiling by design. When an organization has governance turned on, its policy replaces whatever a developer sets locally, visible as a “Governance: Managed by <org>” line in the sbx policy ls output, and a local allow rule can never override an organization-level deny. Docker also describes “kits” that let a team define network and credential rules once and hand the same artifact to every developer instead of maintaining a personal allowlist per laptop, plus audit events, carrying the user, timestamp, and the rule that fired, that stream into whatever SIEM a security team already runs whenever a sandboxed process reaches for something outside its policy.

Among the practices Docker’s post recommends: treat export and other environment-changing built-ins as commands in their own right, since they can silently change what a later, already-approved command does; do not mistake an allowlist for a security boundary, since, in Docker’s characterization, Cursor’s own documentation now describes it as best-effort rather than a guarantee; and isolate untrusted code, meaning anything a developer did not write and has not read, before the first command runs rather than after something looks wrong.

Why this outlasts one Cursor patch

This is the fifth entry in Docker’s horror-stories series, following posts on an agent running rm -rf ~/, the same failure mode reaching into a production cloud environment, and, in Part 4, credentials harvested through the Nx npm supply chain attack. The throughline across all five is that a coding agent runs with the developer’s own filesystem permissions and credentials, and an approval prompt only protects against threats the prompt itself can see.

CVE-2026-22708 is specific to Cursor and already patched. But the assumption it broke, that a command’s name at approval time reliably describes what will execute, is a property of approval-based guardrails in general, not of any single vendor’s implementation. Any agentic coding tool that lets a model run shell commands past a human review step inherits the same open question: what else, besides the command a developer actually sees, gets a vote in deciding what that command does?

Tags:

AI AgentsApplication SecurityCursorDockerPrompt Injection

Share

Close-up photograph of an archaic stone Gorgon relief sculpture from a Greek temple pediment, flanked by carved lion heads
Previous Post

CISA, FBI, and HHS Warn Medusa Ransomware Has Hit Over 500 Critical Infrastructure Orgs

Close-up of a refreshable Braille display connected beneath a computer keyboard, showing raised dot patterns used by blind screen reader users
Next Post

How to Find and Fix WCAG 2.2 Accessibility Bugs With axe-core and Playwright

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest
22 Nov
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
22 Nov
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
Trending
November 22, 2026
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
November 22, 2026
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
November 22, 2026
GL.iNet Replaced Its Advice to Factory-Reset Every Router and KVM With a Check for One Process, but a 199-Router Survey Found That Process on None, and Sunday’s First Stable Fixes Left Out the Slate AX Model With Most of the Root Shells
November 22, 2026
How to Retire an API Endpoint in FastAPI: Send Deprecation and Sunset Headers, Find the Clients Still Calling It, Schedule Brownouts, and Block an Early Removal With oasdiff
November 22, 2026
MIT Technology Review’s “Most Misunderstood Graph” Update Reports METR’s Judgment Findings Mostly Fairly, but It Never Says Each Point Is a 50% Success Rate or Gives the New 3.6-Month Doubling Time and 2.1 to 4.9 Month Range, and It Credits OpenAI With a Comparison METR Built
November 22, 2026
Rackspace Says Leaked Credentials Let an Intruder Act as Legitimate Users in Some Spot Customer Organizations and Reach Their Kubernetes Secrets, a Platform9 Co-Founder Names a Breached Observability System as the Root Cause, and the Status Page Says Only “System Maintenance Operations”

Related Posts

Blue-lit server racks in a modern data center, illustrating the compute infrastructure behind the AI boom.
Articles

The AI Boom Is Spending Real Money Before Proving Real Returns

June 7, 2026
Technician working with a laptop beside server racks, representing enterprise AI retrieval infrastructure
Articles

Google’s Agentic RAG Push Makes Enterprise AI Less of a One-Shot Guess

June 7, 2026
A person with a laptop and smartphone, representing digital attention and AI-assisted work
Articles

AI Chatbots Are Making Attention a Design Problem

June 7, 2026
A customer-support representative wearing a headset against a dark studio background.
Articles

The Meta AI Support Hack Was a Plain Old Authorization Failure

June 7, 2026
SXZ.io SXZ.io
  • [email protected]

Categories

Articles
Learning Hub
News

All Rights Reserved by SXZ.io ©2026