Semantic Kernel has an Arbitrary File Write via AI Agent Function Calling in .NET SDK
microsoft semantic-kernel
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| semantic-kernel PyPI |
|
|
| Microsoft.SemanticKernel.Core NuGet |
|
|
microsoft semantic-kernel
| Product | Affected | Fixed in |
|---|---|---|
| semantic-kernel PyPI |
|
|
| Microsoft.SemanticKernel.Core NuGet |
|
|
Semantic Kernel is an SDK used to build, orchestrate, and deploy AI agents and multi-agent systems. Prior to 1.71.0, an Arbitrary File Write vulnerability has been identified in Microsoft's Semantic Kernel .NET SDK, specifically within the SessionsPythonPlugin. The problem has been fixed in Microsoft.SemanticKernel.Core version 1.71.0. As a mitigation, users can create a Function Invocation Filter which checks the arguments being passed to any calls to DownloadFileAsync or UploadFileAsync and ensures the provided localFilePath is allow listed.
From the CVE record · GitHub_M
The SessionsPythonPlugin in the Semantic Kernel .NET SDK has an arbitrary file write vulnerability. An attacker can write arbitrary files; the input does not specify whether network access, authentication, or user interaction is required.
Check deployments using PyPI semantic-kernel before 1.39.3 or NuGet Microsoft.SemanticKernel.Core before 1.71.0.