AI Agent Framework Flaws Turn Prompt Injection Into Code Execution and Persistence
Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Apr 23, 2026

Microsoft disclosed two critical vulnerabilities in its Semantic Kernel AI agent framework that could let prompt injection escalate into host compromise. CVE-2026-26030 affected the Python implementation before version 1.39.4, where unsafe eval()-based lambda construction in the Search Plugin’s default In-Memory Vector Store filter path enabled remote code execution, while CVE-2026-25592 affected the .NET SDK before version 1.71.0 and allowed arbitrary file write through SessionsPythonPlugin’s DownloadFileAsync, creating a path to sandbox escape and host takeover; a related arbitrary file read issue was also present in upload handling. Microsoft said it hardened AST validation, restricted callable functions and attributes, removed unintended tool exposure, added path validation, and urged customers to patch and review endpoint telemetry for signs of exploitation.
The disclosure lands amid broader warnings that AI agents can preserve and amplify malicious instructions through memory and context reuse. Cisco researchers recently showed that poisoned memory files in Anthropic’s Claude Code could persist across projects and sessions, steering the assistant to insert hard-coded secrets, choose insecure packages and configurations, and spread tainted changes to another developer. Researchers and defenders say the incidents reinforce that AI models are not security boundaries and that any model-influenced tool parameter, memory file, or context artifact should be treated as attacker-controlled input, with mitigations including patching vulnerable frameworks, scanning memory and dependency files, and purging stored agent memory after suspected compromise.
Why it matters
Impact assessment
Microsoft Semantic Kernel deployments that expose AI-agent functionality are directly affected, especially Python agents using the Search Plugin with the default In-Memory Vector Store and .NET agents using SessionsPythonPlugin. The impact is severe because prompt injection can escalate from model manipulation to host-level remote code execution, arbitrary file write, persistence, sandbox escape, and potential full system compromise.
The exposure is narrower than a generic framework-wide flaw because exploitation depends on specific plugins, versions, and agent configurations, but affected AI-enabled developer and enterprise workflows are high value and likely to be internet- or user-input-facing. Microsoft disclosed no confirmed in-the-wild exploitation in the provided material, but the vendor explicitly advised customers to review endpoint telemetry for prior compromise, indicating realistic exploitability.
Affected populations
- Organizations building AI agents on Microsoft Semantic Kernel
- Development teams using Semantic Kernel Python package before 1.39.4
- Development teams using Semantic Kernel .NET SDK before 1.71.0
- Environments using Azure Container Apps dynamic sessions with SessionsPythonPlugin
- AI-assisted coding and workflow systems that persist memory/context across sessions
Business impact
- Host compromise from prompt-injection-driven code execution
- Persistence via dropped files such as Windows Startup folder payloads
- Arbitrary file read/write leading to credential exposure, tampering, or data theft
- Operational disruption in developer platforms and AI-enabled business workflows
- Reputational and software supply chain risk if poisoned outputs are committed or shared
Related ecosystem risk
- Cisco research on Anthropic Claude Code shows memory poisoning can persist across projects and sessions
- Poisoned memory files can induce insecure package selection, insecure configuration, and insertion of hard-coded secrets into production code
- Cross-developer propagation raises supply chain and insider-trust concerns even without direct host exploitation


