Vulnerabilities in pkg:nuget/Microsoft.SemanticKernel.Core
PACKAGECVE-2026-25592 is a CRITICAL (CVSS 9.9) semantic kernel has arbitrary file vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Semantic kernel libraries in the PyPI ecosystem. The issue involves semantic kernel has arbitrary file write via ai agent function calling in .net sdk. Remediation is available by upgrading affected packages to version 1.39.3, 1.71.0.
pkg:nuget/Microsoft.SemanticKernel.Core
Vulnerability advisories affecting package pkg:nuget/Microsoft.SemanticKernel.Core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2ww3-72rp-wpp4 | CVE-2026-25592 | CRITICAL | Semantic Kernel has Arbitrary File Write via AI Agent Function Calling in .NET SDK |
CVE-2026-25592 at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-25592
To remediate this vulnerability, upgrade all affected Semantic kernel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install semantic-kernel>=1.39.3
Upgrade Microsoft.SemanticKernel.Core to 1.71.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show semantic-kernel
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-25592, inspect your installed packages using pip:
pip show semantic-kernel
Analyze the terminal output to locate any version of Semantic kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.39.3), your application is affected.
Note: The pip show semantic-kernel command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Semantic kernel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25592 Affected Semantic kernel Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
semantic-kernel
|
PyPI |
< 1.39.3
|
1.39.3
|
|
Microsoft.SemanticKernel.Core
|
NuGet |
< 1.71.0
|
1.71.0
|
References
Frequently Asked Questions
What is CVE-2026-25592?
Which Semantic kernel versions are affected?
What version fixes CVE-2026-25592?
Is semantic-kernel affected?
Is Microsoft.SemanticKernel.Core affected?
What is the CVSS score of CVE-2026-25592?
What CWE is associated with CVE-2026-25592?
How can I check PyPI dependencies for CVE-2026-25592?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2ww3-72rp-wpp4",
"modified" : "2026-02-20T19:15:43Z",
"published" : "2026-02-06T18:37:24Z",
"aliases" : [ "CVE-2026-25592" ],
"summary" : "Semantic Kernel has Arbitrary File Write via AI Agent Function Calling in .NET SDK",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\nAn Arbitrary File Write vulnerability has been identified in Microsoft's Semantic Kernel .NET SDK, specifically within the `SessionsPythonPlugin`.\nDevelopers who have built applications which include Microsoft's Semantic Kernel .NET SDK and are using the `SessionsPythonPlugin`\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\nThe problem has been fixed in [Microsoft.SemanticKernel.Plugins.Core version 1.71.0](https://www.nuget.org/packages/Microsoft.SemanticKernel.Plugins.Core/1.71.0). Users should upgrade to version 1.71.0 or higher.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\nUsers can create a [Function Invocation Filter](https://learn.microsoft.com/en-us/semantic-kernel/concepts/enterprise-readiness/filters?pivots=programming-language-csharp#function-invocation-filter) which checks the arguments being passed to any calls to `DownloadFileAsync ` or `UploadFileAsync` and ensures the provided `localFilePath` is allow listed.\n\n### References\n_Are there any links users can visit to find out more?_\n- [Sample showing safe use of the CodeInterpreterPlugin](https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Demos/CodeInterpreterPlugin/Program.cs#L61-L64)\n- [PR to Add file upload security controls to SessionsPythonPlugin](https://github.com/microsoft/semantic-kernel/pull/13478/changes#diff-88d3cacba2bfa84eef8f2aa171b34f9940338cbb784a3ffc49f5fe3af1b8943d)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "semantic-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.39.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.SemanticKernel.Core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.71.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/microsoft/semantic-kernel/security/advisories/GHSA-2ww3-72rp-wpp4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25592"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/semantic-kernel/pull/13478/changes#diff-88d3cacba2bfa84eef8f2aa171b34f9940338cbb784a3ffc49f5fe3af1b8943d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoft/semantic-kernel"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Demos/CodeInterpreterPlugin/Program.cs#L61-L64"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-06T18:37:24Z",
"nvd_published_at" : "2026-02-06T21:16:17Z"
}
}