
When prompts become shells 🐚💻 ------------- On May 7, showed how prompt injection becomes host RCE in Semantic Kernel. Not a chatbot saying something rude. An agent doing exactly what it was designed to do. CVE-2026-26030, Python, In-Memory Vector Store: Needs 2 things: a prompt injection vector, plus an agent using Search Plugin with In-Memory Vector Store on default config. The filter is a Python lambda built by string interpolation, then run in eval(). Blocklist tried to stop eval, exec, open, __import__. It missed __class__, BuiltinImporter, load_module, system. Payload escapes the quote, crawls the class hierarchy, loads os, calls system(). PoC: calc.exe on the host. Fix: Python semantic-kernel 1.39.4+ CVE-2026-25592, .NET, SessionsPythonPlugin: The sandbox was real. The escape was a one-line mistake. DownloadFileAsync was accidentally marked [KernelFunction], so the model could call it. Its localFilePath was fully AI-controlled, no path validation, direct File.WriteAllBytes() on the host. Chain: ExecuteCode makes payload in sandbox, DownloadFileAsync writes it to Windows Startup, next sign-in runs it. Reverse path could also read host files like SSH keys. Fix: .NET SDK 1.71.0+ LESSON, IN MICROSOFT'S WORDS: Not a bug in the model. A bug in architecture. Your LLM is not a security boundary. Your tools are. Any tool parameter the model can influence must be treated as attacker-controlled. Upgrade, then hunt for agent spawning cmd, PowerShell, or dropping files into Startup. #CyberSecurity #InfoSec #AI #PromptInjection #SemanticKernel #RCEU https://www.microsoft.com/en-us/security/blog/2026/05/07/prompts-become-shells-rce-vulnerabilities-ai-agent-frameworks/













