CVE-2026-26030: Remote Code Execution in Microsoft Semantic Kernel Python InMemoryVectorStore
- Vendor
- Microsoft Corporation
CVE-2026-26030 is a code injection vulnerability in the InMemoryVectorStore filter functionality of Microsoft Semantic Kernel Python SDK versions earlier than 1.39.4. The vulnerable implementation interpolates model-controlled filter input into a Python lambda expression and evaluates it using eval(). An AST-based validator blocks selected dangerous identifiers but can be bypassed using crafted expressions involving Python class hierarchy traversal and dynamic module loading. In agents using the Search Plugin backed by the default In-Memory Vector Store, prompt injection can cause malicious filter input to reach this execution path, resulting in arbitrary code execution on the agent host.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution with the permissions of the application hosting the Semantic Kernel agent. This can compromise confidentiality, integrity, and availability through access to application-accessible data and credentials, unauthorized modification of resources, or service disruption. Compromise can extend beyond the vector-store component; its extent depends on the host process's privileges and isolation.
Mitigation
If you can’t patch tonight, do this now.
Until upgraded, avoid using InMemoryVectorStore in production and disable or replace its vulnerable filter functionality. Prevent untrusted callers and model-generated input from supplying arbitrary filter expressions, and restrict network access to trusted callers where feasible. Run agent hosts with least privilege and appropriate isolation to limit the consequences of code execution; model-level guardrails are not a security boundary.
Remediation
Patch, then assume compromise.
Upgrade the semantic-kernel Python package to version 1.39.4 or later and redeploy affected applications. The fix strengthens expression validation through an AST node-type allowlist, a function-call allowlist, restrictions on name nodes, and a dangerous-attribute blocklist. Investigate the vulnerable deployment window for suspicious child processes, outbound connections, and persistence artifacts associated with the agent host.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-26030 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2026-26030 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-26030?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-26030, the earliest disclosed Jun 22, 2026.
- Is there a patch for CVE-2026-26030?
- Upgrade the semantic-kernel Python package to version 1.39.4 or later and redeploy affected applications. The fix strengthens expression validation through an AST node-type allowlist, a function-call allowlist, restrictions on name nodes, and a dangerous-attribute blocklist.
- What products are affected by CVE-2026-26030?
- Microsoft Corporation Semantic Kernel.
- How severe is CVE-2026-26030?
- CVE-2026-26030 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 4.4% (92nd percentile) as of Nov 19, 2026.
Recent activity
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.