CVE-2026-25592: Arbitrary File Write in Microsoft Semantic Kernel .NET SessionsPythonPlugin
CVE-2026-25592 is an arbitrary file write vulnerability in Microsoft Semantic Kernel .NET SDK, specifically in the SessionsPythonPlugin component. The issue affects versions prior to the fixed release and stems from unsafe handling of attacker- or model-controlled local file path arguments in file transfer functions, particularly DownloadFileAsync; supporting content also references UploadFileAsync as affected by insufficient path validation. In the vulnerable implementation, DownloadFileAsync exposed a localFilePath parameter that ultimately controlled where File.WriteAllBytes() wrote data on the host, without adequate path validation, sanitization, or directory restriction. Additional reporting states DownloadFileAsync was inadvertently exposed to the model as a callable tool via the [KernelFunction] attribute, allowing prompt-influenced tool invocation to reach the vulnerable path. Researchers described an exploit chain in which code executed in the sandbox creates a malicious payload and then uses DownloadFileAsync to write that payload to an arbitrary host path such as the Windows Startup folder, enabling execution on next logon. The flaw demonstrates that model-controlled tool parameters must be treated as untrusted input and that localhost/sandbox assumptions do not provide a security boundary.
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 allows arbitrary file creation or overwrite on the host system running the Semantic Kernel application. Depending on the writable target path, this can enable overwriting application or system files, planting malicious scripts or binaries, establishing persistence, escaping the intended sandbox boundary, and potentially achieving full host compromise. The supplied context specifically describes writing a payload into the Windows Startup folder so it executes at next user sign-in, leading to remote code execution in the context of the logged-in user. The vulnerability may also facilitate tampering with configurations and other sensitive files, with high confidentiality, integrity, and availability impact.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, implement a Semantic Kernel Function Invocation Filter that inspects arguments passed to SessionsPythonPlugin file operations and enforces a strict allowlist for localFilePath values used by DownloadFileAsync and UploadFileAsync. Reject absolute paths, traversal sequences, and any destination outside explicitly approved directories and filenames. Limit or disable SessionsPythonPlugin where not required, avoid exposing file-management tools unnecessarily to model-driven workflows, and isolate agent workloads from sensitive host paths using containers, restricted user contexts, and least-privilege filesystem permissions.
Remediation
Patch, then assume compromise.
Upgrade Microsoft.SemanticKernel.Core to a fixed version. The content is inconsistent on the exact fixed version, with multiple references stating the issue is fixed in 1.71.0 and some references stating 1.70.0; the most recent and primary description provided identifies 1.71.0 as the fixed version. Apply the vendor patch that removes unintended tool exposure from DownloadFileAsync and adds local path validation/canonicalization with directory allowlist enforcement. Review any custom integrations of SessionsPythonPlugin and ensure file operations enforce strict path restrictions. After patching, investigate historical agent activity and endpoint telemetry for suspicious file writes, persistence artifacts, or child-process behavior associated with prior exploitation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-25592 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-25592 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-25592?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-25592.
- Is there a patch for CVE-2026-25592?
- Upgrade Microsoft.SemanticKernel.Core to a fixed version. The content is inconsistent on the exact fixed version, with multiple references stating the issue is fixed in 1.71.0 and some references stating 1.70.0; the most recent and primary description provided identifies 1.71.0 as the fixed version.
- How severe is CVE-2026-25592?
- CVE-2026-25592 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 2.5% (86th percentile) as of Sep 25, 2026.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.