Skip to main content
Mallory
CriticalVulnerability

CVE-2026-25592: Arbitrary File Write in Microsoft Semantic Kernel .NET SessionsPythonPlugin

Published Feb 6, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.9Critical · v3.1
EPSS2.5%86th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-25592CWE-22 · Improper Limitation of a Pathname…

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.

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

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
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 activity14Community discussion across Reddit, Mastodon, and other social sources.