Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-26030: Remote Code Execution in Microsoft Semantic Kernel Python InMemoryVectorStore

Published Feb 19, 2026 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 2 in a dayToday
CVSS9.9Critical · v3.1
EPSS4.4%92nd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Microsoft Corporation
IdentifiersCVE-2026-26030CWE-94 · Improper Control of Generation of…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
sk-cve-2026-26030-labThis repository is a self-contained lab and proof-of-concept exploit for CVE-2026-26030 affecting Microsoft Semantic Kernel for Python before 1.39.4. It demonstrates prompt-influenceable remote code execution through the in-memory vector store filter parser, where attacker-controlled filter strings are compiled and evaluated. The exploit abuses two validation weaknesses: unrestricted `ast.Attribute` traversal enables dunder walking, and the call validator skips enforcement when the callable is wrapped as a `Subscript`, allowing constructs like `[obj.method][0](args)`. The chain reaches `object.__subclasses__()`, locates `BuiltinImporter`, loads `os`, and invokes `os.system()`. Repository structure: `exploit.py` is the main end-to-end PoC, creating a real `InMemoryCollection`, inserting sample hotel records, generating the malicious lambda payload dynamically, and confirming exploitation by creating `/tmp/pwned_by_filter`. `probe.py` is a smaller validator-focused bypass demonstration that directly exercises `_parse_and_validate_filter`. `find_sink.py` is a helper script to locate the real `eval`/`compile` sink in the installed Semantic Kernel package. `run.sh` executes the same exploit against both a vulnerable (`.venv`, 1.39.3) and patched (`.venv-patched`, 1.39.4) environment for comparison. `setup.sh` provisions those isolated virtual environments. The `demo-ui/` directory contains a live web demonstration: `demo-ui/app.py` is a FastAPI application that builds a Groq-backed Llama agent via Semantic Kernel. The agent exposes a `search_hotels(city)` tool that unsafely interpolates the model-supplied `city` into a filter string. An attacker message is prebuilt to coerce the model into passing a malicious city value, causing the vulnerable filter path to execute `open -a Calculator` on the host while the agent still returns hotel results. `demo-ui/index.html` is the browser UI that loads the attacker seed message, posts to `/chat`, and displays whether RCE fired. `demo-ui/run.sh` launches the local server on 127.0.0.1:8000. Overall, this is a real exploit repository rather than a detector. It contains both a headless PoC and an interactive web demo, with harmless but functional payloads proving arbitrary command execution under the current user context.InertFluid · Disclosed Jun 22, 2026 · python · bash · local · webOperational
Exposure surface

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.

VendorProductType
Microsoft CorporationSemantic Kernelapplication
FAQ

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.
Activity feed

Recent activity

27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+4 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity19Community discussion across Reddit, Mastodon, and other social sources.