CVE-2026-25592CWE-22

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

Critical · published February 6, 2026

CVSS v3.1
10.0
EPSS
2%
Percentile
83.7
In the wild
Unconfirmed
What it is

🚨 An Arbitrary File Write vulnerability in Microsoft's Semantic Kernel SDK could let attackers overwrite critical files on your system. 🔥 This is a game-changer that demands immediate attention! Think of a construction site with an open gate; anyone could stroll in and rearrange the equipment or even sabotage the project. In this case, the SessionsPythonPlugin is that gate, allowing unwanted changes to your system's files without proper checks. An attacker could exploit this vulnerability to overwrite important files, potentially leading to data loss, system crashes, or unauthorized access to sensitive information. The consequences could be absolutely devastating, disrupting the functionality of AI agents and multi-agent systems.

Put simply

Think of a construction site with an open gate; anyone could stroll in and rearrange the equipment or even sabotage the project. In this case, the SessionsPythonPlugin is that gate, allowing unwanted changes to your system's files without proper checks. The vulnerability arises from insufficient validation of file paths in the DownloadFileAsync and UploadFileAsync functions, enabling arbitrary file writes. This flaw allows attackers to specify malicious local file paths that the system blindly accepts.

What to do

An attacker could exploit this vulnerability to overwrite important files, potentially leading to data loss, system crashes, or unauthorized access to sensitive information. The consequences could be absolutely devastating, disrupting the functionality of AI agents and multi-agent systems. To protect your environment, upgrade to Microsoft.SemanticKernel.Core version 1.71.0 immediately. As a further safeguard, implement a Function Invocation Filter to validate arguments passed to DownloadFileAsync and UploadFileAsync, ensuring only approved local file paths are allowed. You've got this! By following these steps, you can secure your system and keep those AI agents running smoothly. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02362 · 83.7th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-02-06T20:38Z
EPSS history
Timeline
  • 06 FEB 20:38Z
    Semantic Kernel has an Arbitrary File Write via AI Agent Function Calling in .NET SDK
    cvelistv5