Source: <https://www.microsoft.com/en-us/security/blog/2026/05/07/prompts-become-shells-rce-vulnerabilities-ai-agent-frameworks/>


For End Users

Microsoft just admitted something the security community has warned about for years. Prompt injection is not a niche bug. It is a critical security vulnerability class.

The company disclosed two CVEs on May 7, 2026. CVE-2026-25592 and CVE-2026-26030 both affect Semantic Kernel, Microsoft's open-source AI agent framework. A malicious prompt sent to the In-Memory Vector Store plugin can execute arbitrary code on the host machine. This is remote code execution triggered by text input.

This matters if you use AI-powered search, agents, or tools that read documents from the web. An attacker can hide malicious instructions inside a PDF, an email, or a web page. Your AI assistant reads it. The hidden prompt hijacks the agent. Then it runs commands on the server. You would never see it happen. The exploit looks like normal document processing.

Microsoft has patched both CVEs. Update any systems running Semantic Kernel immediately. Ask your vendors if their AI tools use Semantic Kernel under the hood. Most users will not know. The risk is invisible until it is not.

This is the first time a major AI vendor has rated prompt injection at the same severity level as traditional code execution flaws. That shift changes how enterprises buy, audit, and insure AI systems. It also means security teams will start asking harder questions about every AI product you deploy.


For Engineers and Researchers

Microsoft's security blog titled the post "Prompts Become Shells." That framing is deliberate and accurate.

The vulnerabilities reside in Semantic Kernel's In-Memory Vector Store plugin. An attacker crafts a prompt that the plugin processes during retrieval. The injected payload escapes the intended query context and executes system-level commands on the host. The result is host-level RCE from user-supplied text.

CVE-2026-25592 covers the initial injection vector. CVE-2026-26030 covers a related bypass. Both are rated critical. Microsoft assigned them CVE numbers, wrote detailed technical advisories, and shipped patches through standard channels.

This is a watershed moment. Before May 2026, prompt injection lived in a gray zone. Researchers filed bugs. Startups built defenses. Conference talks explored the risk. But no major platform vendor treated it as a standard critical vulnerability class with official CVEs, CVSS scores, and patch Tuesday style fixes. Microsoft has now done exactly that.

For engineers building agent frameworks, the implication is clear. Input sanitization is not enough. The boundary between prompt data and executable code is porous by design in current agent architectures. Any component that reads external content, vectorizes it, and feeds it to a model is a potential shell.

The Semantic Kernel case is especially instructive because the RCE surface was the vector store, not the LLM itself. The model did not need to be tricked into generating malicious code. The retrieval layer was enough. That means your RAG pipeline is now in scope for security audits in the same way your web server is.

Patch your dependencies. Audit your RAG pipelines. Treat every text input as untrusted. Review how your vector store handles metadata and query preprocessing. The Semantic Kernel case proves that a vector store can become the execution surface.


The Skeptical Take

Microsoft deserves credit for disclosure. But the timing raises eyebrows. Security researchers demonstrated RCE via prompt injection in open-source tools throughout 2024 and 2025. The technique was well documented. Multiple proof-of-concepts showed exactly this vector. Microsoft calling it newsworthy in May 2026 looks like catch-up branding, not frontier research.

The real test is whether this signals a broader shift in how all major vendors classify and patch prompt injection, or if it remains a one-off fix for a single framework. If OpenAI, Google, and Anthropic do not follow with their own CVEs and formal severity ratings, then this is just Microsoft cleaning up its own yard while the neighborhood still floods.


Word count: 638

Written at: 2026-05-20T17:26:00Z