Two different products, two different vendors, and the same mistake: trusting that a text filter or a sandbox wrapper will stop an agent from doing what it shouldn’t. Comparing CVE-2026-65669 and CVE-2026-77521 shows why a guardrail is not a permission.
In SQL Server Management Studio, the SQL Copilot feature enforced read-only mode with a regular-expression-based classifier (the LocalSqlExecutionAccessChecker class, according to the researcher’s analysis) rather than with real database permissions. A pattern like DECLARE @p sysname='sp_executesql'; EXEC @p slipped past the blocklist and allowed arbitrary T-SQL to run, including write and delete operations.
The analysis also describes two aggravating factors: data exfiltration over SMB paths using procedures such as xp_dirtree, and a privilege escalation path in which a low-privilege database owner could plant instructions in extended properties (AGENTS.md- or CONSTITUTION.md-style files) that Copilot pulls into its context; when a higher-privileged user then used Copilot, it executed the attacker’s orders with those higher privileges.
MaxKB, an open-source enterprise AI assistant, applied a gosu wrapper as a sandbox for running shell commands. In versions up to 2.10.4-lts, the wrapper was only applied to the first command in the chain: with whoami; id, the first stayed inside the sandbox and the second ran unrestricted, as root inside the official container.
The attack scenario described by Lasso Security: the attacker publishes web content containing instructions; the victim creates a MaxKB agent with a knowledge base that indexes that content; when queried, the agent retrieves the text, treats it as instructions, and runs the commands. In addition, the CVE’s official description indicates that the shell execution tool was not excluded from the agent’s tools and did not require human approval. With a CVSS of 10, in multi-tenant deployments this means access to secrets and credentials across tenants. The fix is to upgrade to 2.10.5-lts or later (released August 6, 2026) and keep the sandbox enabled in production.
Checklist:
Want a review of your agents’ permissions and isolation? Write to us at info@guatemalia.com.
Carlos Montiel is an enterprise AI solutions architect. He implements LLMs, Agents, RAG, and orchestrators for companies across Guatemala and Latin America. Reach out for a consultation.
Contact Carlos Montiel