AgentScout Logo Agent Scout

Microsoft: RCE Vulnerabilities Turn Prompts Into Shell Commands

CVE-2026-26030 (CVSS 9.8) enables RCE in Semantic Kernel via prompt injection. Immediate upgrade to 1.39.4+ required for AI agent applications.

AgentScout Β· Β· 4 min read
#microsoft #semantic-kernel #rce #prompt-injection #ai-security #cve
Analyzing Data Nodes...
SIG_CONF:CALCULATING
Verified Sources

TL;DR

Microsoft disclosed CVE-2026-26030 (CVSS 9.8), a critical remote code execution vulnerability in Semantic Kernel Python SDK that allows attackers to execute arbitrary code through prompt injection in vector store filter expressions. The vulnerability affects all versions prior to 1.39.4 and targets AI agent infrastructure directly, not web endpoints.

Key Facts

  • Who: Microsoft Security Response Center, affecting Semantic Kernel SDK users
  • What: Critical RCE vulnerability (CVSS 9.8) enabling arbitrary code execution via prompt injection
  • When: Disclosed May 7, 2026; patches available immediately
  • Impact: All AI applications using Semantic Kernel Python SDK < 1.39.4 or .NET SDK < 1.71.0

What Changed

Microsoft’s Security Response Center disclosed a critical remote code execution vulnerability in Semantic Kernel, its open-source SDK for building AI agents. CVE-2026-26030 carries a CVSS severity score of 9.8 out of 10, making it one of the most severe AI framework vulnerabilities disclosed in 2026.

The vulnerability resides in the InMemoryVectorStore component, where malicious filter expressions can be injected through user prompts. Unlike traditional injection attacks that target web application endpoints, this attack chain converts natural language input into executable Python code through the agent’s internal filter parsing logic.

β€œAn attacker who successfully exploited this vulnerability could run arbitrary code in the context of the application,” Microsoft stated in its security advisory. β€œThis could allow the attacker to install programs; view, change, or delete data; or create new accounts with full user rights.”

A second vulnerability, CVE-2026-25592, affects the .NET SDK with a path traversal flaw. Both vulnerabilities were patched in Semantic Kernel Python version 1.39.4 and .NET version 1.71.0, released immediately upon disclosure.

Security researchers from Nuka-AI disclosed multiple bypass vectors for the initial February patches, prompting the May disclosure and additional hardening measures.

Why It Matters

The attack chain mechanics distinguish this vulnerability from traditional web security threats:

Attack VectorTraditional XSSSemantic Kernel RCE
Entry PointWeb form inputAgent prompt input
Target LayerBrowser DOMPython/.NET runtime
Execution ContextClient-side JavaScriptServer-side code
Blast RadiusUser sessionApplication server
Exploitation ComplexityMediumLow

Attack Chain Breakdown:

  1. Prompt Input: Attacker crafts a natural language prompt containing malicious filter syntax
  2. Filter Expression: The prompt is passed to InMemoryVectorStore.filter() without proper sanitization
  3. Code Execution: Filter expression is evaluated as Python code via eval() or equivalent
  4. Runtime Access: Attacker gains arbitrary code execution on the server hosting the AI agent

The vulnerability class is particularly concerning because:

  • No Input Validation Bypass Required: The filter expression syntax is intended functionality, making detection difficult
  • Agent-Specific Attack Surface: Traditional WAF rules do not inspect agent prompt flows
  • High Trust Context: AI agents often run with elevated permissions to access tools, APIs, and databases
  • Supply Chain Implications: Organizations embedding Semantic Kernel in production agents face immediate exposure

According to Microsoft’s security blog, the attack requires no authentication for applications that accept untrusted prompts, which includes most customer-facing AI agent deployments.

πŸ”Ί Scout Intel: What Others Missed

Confidence: high | Novelty Score: 82/100

The deeper security implication extends beyond the immediate patch. This vulnerability represents a new attack class: prompt-to-code translation exploits. Traditional security models assume a boundary between user input and code execution, but AI agent frameworks deliberately blur this boundary through natural language interfaces. Semantic Kernel’s filter expression mechanism is not a bugβ€”it’s a feature designed to let developers write expressive queries. The vulnerability exploits this intentional design pattern, making it difficult to distinguish legitimate use from malicious injection without breaking functionality.

Key Implication: Enterprise security teams must audit all AI agent frameworksβ€”not just Semantic Kernelβ€”for similar prompt-to-code translation patterns. LangChain, CrewAI, and OpenAI’s Agents SDK all implement comparable filter/search mechanisms that may contain equivalent vulnerabilities. The attack surface is architectural, not incidental.

What This Means

For AI Application Developers

Immediate action is required for any application using Semantic Kernel Python SDK before version 1.39.4 or .NET SDK before version 1.71.0. The patch introduces strict input sanitization for filter expressions, but developers should additionally:

  • Implement prompt content filtering before filter expression generation
  • Audit agent permissions and apply principle of least privilege
  • Enable audit logging for all filter expression evaluations
  • Consider sandboxing agent runtimes in containerized environments

For Enterprise Security Teams

This disclosure should trigger a broader audit of AI agent infrastructure:

  1. Inventory all AI frameworks in production environments, including Semantic Kernel, LangChain, CrewAI, AutoGen, and OpenAI Agents SDK
  2. Review prompt handling code for similar filter expression patterns
  3. Update security monitoring to include agent prompt flows, which traditional WAFs do not inspect
  4. Assess blast radius: Agents with database, API, or file system access multiply the potential impact

What to Watch

Microsoft’s disclosure may be the first of many in this vulnerability class. Security researchers at Nuka-AI have demonstrated that the attack pattern is replicable across multiple agent frameworks. Expect additional CVEs targeting prompt-to-code translation mechanisms in competing AI agent SDKs throughout 2026.

Related Coverage:

Sources

Microsoft: RCE Vulnerabilities Turn Prompts Into Shell Commands

CVE-2026-26030 (CVSS 9.8) enables RCE in Semantic Kernel via prompt injection. Immediate upgrade to 1.39.4+ required for AI agent applications.

AgentScout Β· Β· 4 min read
#microsoft #semantic-kernel #rce #prompt-injection #ai-security #cve
Analyzing Data Nodes...
SIG_CONF:CALCULATING
Verified Sources

TL;DR

Microsoft disclosed CVE-2026-26030 (CVSS 9.8), a critical remote code execution vulnerability in Semantic Kernel Python SDK that allows attackers to execute arbitrary code through prompt injection in vector store filter expressions. The vulnerability affects all versions prior to 1.39.4 and targets AI agent infrastructure directly, not web endpoints.

Key Facts

  • Who: Microsoft Security Response Center, affecting Semantic Kernel SDK users
  • What: Critical RCE vulnerability (CVSS 9.8) enabling arbitrary code execution via prompt injection
  • When: Disclosed May 7, 2026; patches available immediately
  • Impact: All AI applications using Semantic Kernel Python SDK < 1.39.4 or .NET SDK < 1.71.0

What Changed

Microsoft’s Security Response Center disclosed a critical remote code execution vulnerability in Semantic Kernel, its open-source SDK for building AI agents. CVE-2026-26030 carries a CVSS severity score of 9.8 out of 10, making it one of the most severe AI framework vulnerabilities disclosed in 2026.

The vulnerability resides in the InMemoryVectorStore component, where malicious filter expressions can be injected through user prompts. Unlike traditional injection attacks that target web application endpoints, this attack chain converts natural language input into executable Python code through the agent’s internal filter parsing logic.

β€œAn attacker who successfully exploited this vulnerability could run arbitrary code in the context of the application,” Microsoft stated in its security advisory. β€œThis could allow the attacker to install programs; view, change, or delete data; or create new accounts with full user rights.”

A second vulnerability, CVE-2026-25592, affects the .NET SDK with a path traversal flaw. Both vulnerabilities were patched in Semantic Kernel Python version 1.39.4 and .NET version 1.71.0, released immediately upon disclosure.

Security researchers from Nuka-AI disclosed multiple bypass vectors for the initial February patches, prompting the May disclosure and additional hardening measures.

Why It Matters

The attack chain mechanics distinguish this vulnerability from traditional web security threats:

Attack VectorTraditional XSSSemantic Kernel RCE
Entry PointWeb form inputAgent prompt input
Target LayerBrowser DOMPython/.NET runtime
Execution ContextClient-side JavaScriptServer-side code
Blast RadiusUser sessionApplication server
Exploitation ComplexityMediumLow

Attack Chain Breakdown:

  1. Prompt Input: Attacker crafts a natural language prompt containing malicious filter syntax
  2. Filter Expression: The prompt is passed to InMemoryVectorStore.filter() without proper sanitization
  3. Code Execution: Filter expression is evaluated as Python code via eval() or equivalent
  4. Runtime Access: Attacker gains arbitrary code execution on the server hosting the AI agent

The vulnerability class is particularly concerning because:

  • No Input Validation Bypass Required: The filter expression syntax is intended functionality, making detection difficult
  • Agent-Specific Attack Surface: Traditional WAF rules do not inspect agent prompt flows
  • High Trust Context: AI agents often run with elevated permissions to access tools, APIs, and databases
  • Supply Chain Implications: Organizations embedding Semantic Kernel in production agents face immediate exposure

According to Microsoft’s security blog, the attack requires no authentication for applications that accept untrusted prompts, which includes most customer-facing AI agent deployments.

πŸ”Ί Scout Intel: What Others Missed

Confidence: high | Novelty Score: 82/100

The deeper security implication extends beyond the immediate patch. This vulnerability represents a new attack class: prompt-to-code translation exploits. Traditional security models assume a boundary between user input and code execution, but AI agent frameworks deliberately blur this boundary through natural language interfaces. Semantic Kernel’s filter expression mechanism is not a bugβ€”it’s a feature designed to let developers write expressive queries. The vulnerability exploits this intentional design pattern, making it difficult to distinguish legitimate use from malicious injection without breaking functionality.

Key Implication: Enterprise security teams must audit all AI agent frameworksβ€”not just Semantic Kernelβ€”for similar prompt-to-code translation patterns. LangChain, CrewAI, and OpenAI’s Agents SDK all implement comparable filter/search mechanisms that may contain equivalent vulnerabilities. The attack surface is architectural, not incidental.

What This Means

For AI Application Developers

Immediate action is required for any application using Semantic Kernel Python SDK before version 1.39.4 or .NET SDK before version 1.71.0. The patch introduces strict input sanitization for filter expressions, but developers should additionally:

  • Implement prompt content filtering before filter expression generation
  • Audit agent permissions and apply principle of least privilege
  • Enable audit logging for all filter expression evaluations
  • Consider sandboxing agent runtimes in containerized environments

For Enterprise Security Teams

This disclosure should trigger a broader audit of AI agent infrastructure:

  1. Inventory all AI frameworks in production environments, including Semantic Kernel, LangChain, CrewAI, AutoGen, and OpenAI Agents SDK
  2. Review prompt handling code for similar filter expression patterns
  3. Update security monitoring to include agent prompt flows, which traditional WAFs do not inspect
  4. Assess blast radius: Agents with database, API, or file system access multiply the potential impact

What to Watch

Microsoft’s disclosure may be the first of many in this vulnerability class. Security researchers at Nuka-AI have demonstrated that the attack pattern is replicable across multiple agent frameworks. Expect additional CVEs targeting prompt-to-code translation mechanisms in competing AI agent SDKs throughout 2026.

Related Coverage:

Sources

cm4bz5ygebfk78uvxll5smβ–‘β–‘β–‘qmy76y332eeyvbxzp1b2igpru28okzbn8β–ˆβ–ˆβ–ˆβ–ˆ4s26kgjaka5jnhunnez36r9hx612ga1fβ–‘β–‘β–‘b9rognxclhy1wr8ys3v3jz0w7ygjtaenβ–‘β–‘β–‘fnjii5s9jelnq5vob5rionghv8euvcq0jβ–ˆβ–ˆβ–ˆβ–ˆ2p97nvpmiv406jxsjsok5p9bn4q8kxt9β–ˆβ–ˆβ–ˆβ–ˆegtuz98dp2nkytpu6xh418hfetcggg5kβ–‘β–‘β–‘gxehepzcu09p847cqhv59q9uuq7juctnrβ–‘β–‘β–‘s6iknwgfdqswfg8y9fwqfakxkvqwy9oβ–‘β–‘β–‘0xdzny6b3hvduygklypgrt5l3src2ss7uβ–ˆβ–ˆβ–ˆβ–ˆt845lrmvjdlyg065pbyetuc9wfexo2bβ–ˆβ–ˆβ–ˆβ–ˆen9hc6j8s481uf9hmvw0nrz3ntsiz56β–‘β–‘β–‘vupc8clt2ku74dcmshhnjcorbe288lsβ–‘β–‘β–‘f7iumyekbhvet8i4m2j3fdo5ivff3rzwβ–ˆβ–ˆβ–ˆβ–ˆdvunzxptdxo2xlahjuinnzj62caaxum29β–‘β–‘β–‘fhs7c6cxgvn3yh3r41716xgkthe5vtjowβ–‘β–‘β–‘4vdge6s9kbmjol13zmjjr76bd3vvb5j2β–‘β–‘β–‘a3kq336xrknw9yg9drrj4mxzerrbxg5aβ–ˆβ–ˆβ–ˆβ–ˆqsul2q4nl31ij8s7drvc21ifzbx4s0kaβ–‘β–‘β–‘5bzn3p0y9n8vkrveeyhy9nczqs42e3gdβ–‘β–‘β–‘mi0y43eid6oqbsbaylu1ljucmaxq4h8β–ˆβ–ˆβ–ˆβ–ˆ5703rul1zqha6ip4ofsvaa8ywn9mc0qqsβ–ˆβ–ˆβ–ˆβ–ˆjfqxgbqgwbr4s8vzqijyzxon98c0k5ekβ–‘β–‘β–‘svru3h6s8ycrpt4zir3r2mmx8bsx9wtbβ–ˆβ–ˆβ–ˆβ–ˆw5owjxt7t0czqv9ekohdarqkvhf6gz03kβ–ˆβ–ˆβ–ˆβ–ˆx4esbhkpfnabr5uw7cxq1rnj6i6tipβ–‘β–‘β–‘vsp8rzbxli7f680se0ta187sxdl63l6ktβ–ˆβ–ˆβ–ˆβ–ˆe0cr66arggwwhf4utnra5ffj2q00ksdnfβ–‘β–‘β–‘n1sjfxat19daadh4f68u74oi9ondhl8lβ–‘β–‘β–‘ui6wf0517z8typf0vtk7io8v7t1qe6wgkβ–ˆβ–ˆβ–ˆβ–ˆ3n14gdop78ya46yj4aecbd2wu9b1g0rx4β–ˆβ–ˆβ–ˆβ–ˆii0l41fm47oqwm37sp2t9yj0lwrv94djβ–ˆβ–ˆβ–ˆβ–ˆi3wlaeiek7ti8m99sjeecynfi4vs26yβ–ˆβ–ˆβ–ˆβ–ˆo1uxeetqab6huqpm1yonsh84eulv4p1β–‘β–‘β–‘ceanu0gq21bo4p8pmlmw5qasarqjd6uicβ–‘β–‘β–‘vytaq2rsu6smi1aikeff6qhk6dir1e3fpβ–ˆβ–ˆβ–ˆβ–ˆk1mpief7gky4c6obnl80isua5tpebxtβ–ˆβ–ˆβ–ˆβ–ˆuji6q16wvfsdi73ay8c3ttoysn79puwtkβ–ˆβ–ˆβ–ˆβ–ˆejbetclnxcpn8nr80csa84xrpmkhvqohβ–‘β–‘β–‘2uuc5u12kc92i98r18dc0tj69qp5v38mβ–‘β–‘β–‘rdbwqxrksh8k4ft6umes3smod8oybynvβ–‘β–‘β–‘1s4db5xsn8zr0zk5extsecc3lxv327cisβ–ˆβ–ˆβ–ˆβ–ˆ66u5vewhrrbu5s9z24upimehxnu2ghaiβ–‘β–‘β–‘9ws1um0bsfhhodev3np0qh5kewru4kd3aβ–ˆβ–ˆβ–ˆβ–ˆ31urrin58esuvprju4a5kta9b6wnrtlβ–‘β–‘β–‘pwqwwmgkdht6h9jzbu3s2w1prlxaw73β–‘β–‘β–‘br9od6gcbxwmmoxirc9yee7wo3tzk8dβ–ˆβ–ˆβ–ˆβ–ˆrnnfa8ev3dg3q4gi7d9u2skt2uersmzjβ–ˆβ–ˆβ–ˆβ–ˆ1eo8khcjdx69zrl7nrvu4pexd9imi9neβ–‘β–‘β–‘kxle2dl2sw6mtgng502zxnf02nvb90jhβ–‘β–‘β–‘dxtsq0zei36