INCIDENT MAP

Browse / Tool and Agent Misuse / CVE-2026-25592

Semantic Kernel has Arbitrary File Write via AI Agent Function Calling in .NET SDK

CVE-2026-25592 · 2026-02-06 critical

Class
Tool and Agent Misuse (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
semantic-kernel (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
2.5% chance of exploitation in 30 days

How it works, in short

An agent's function calls to file download and upload methods accept arbitrary local paths, so model-driven calls can read or write files outside the intended area. (Our summary, written by a model. The source text is below.)

Details

Impact

_What kind of vulnerability is it? Who is impacted?_ An Arbitrary File Write vulnerability has been identified in Microsoft's Semantic Kernel .NET SDK, specifically within the SessionsPythonPlugin. Developers who have built applications which include Microsoft's Semantic Kernel .NET SDK and are using the SessionsPythonPlugin

Patches

_Has the problem been patched? What versions should users upgrade to?_ The problem has been fixed in Microsoft.SemanticKernel.Plugins.Core version 1.71.0. Users should upgrade to version 1.71.0 or higher.

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_ 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.

References

_Are there any links users can visit to find out more?_ - Sample showing safe use of the CodeInterpreterPlugin - PR to Add file upload security controls to SessionsPythonPlugin

References

Source: GitHub Advisory Database, used under CC BY 4.0.