Skip to main content
Mallory
← Back to News
ai-platform-securitywidely-deployed-product-advisoryendpoint-software-vulnerabilitypayload-delivery-evasion

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

AI Agent Framework Flaws Turn Prompt Injection Into Code Execution and Persistence

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
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Apr 23, 2026 – May 7, 2026
  1. May 7, 20267mo ago

    Microsoft discloses and patches two Semantic Kernel RCE flaws

    Microsoft disclosed two critical vulnerabilities in its Semantic Kernel AI agent framework: CVE-2026-26030 in the Python implementation before version 1.39.4 and CVE-2026-25592 in the .NET SDK before version 1.71.0. The flaws enabled remote code execution and arbitrary file write/read scenarios that could lead to sandbox escape and host compromise, and Microsoft released fixes including stricter validation, reduced tool exposure, and path checks.

  2. Apr 23, 20267mo ago

    Cisco researchers disclose Claude Code memory poisoning issue

    Cisco researchers reported that poisoned memory files in Anthropic's Claude Code could persist malicious instructions across projects and sessions, enabling behavior manipulation such as inserting secrets into code, choosing insecure packages, and propagating changes to another developer. Anthropic mitigated the issue, and the disclosure highlighted AI memory/context files as a broader systemic weakness.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.