{"id":"GHSA-2ww3-72rp-wpp4","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)","aliases":["CVE-2026-25592","PYSEC-2026-531"],"modified":"2026-06-29T12:26:18.466664657Z","published":"2026-02-06T18:37:24Z","database_specific":{"nvd_published_at":"2026-02-06T21:16:17Z","cwe_ids":["CWE-22"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-02-06T18:37:24Z"},"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"}],"affected":[{"package":{"name":"semantic-kernel","ecosystem":"PyPI","purl":"pkg:pypi/semantic-kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.39.3"}]}],"versions":["0.0.1.dev0","0.1.0.dev0","0.2.0.dev0","0.2.1.dev0","0.2.2.dev0","0.2.3.dev0","0.2.4.dev0","0.2.5.dev0","0.2.6.dev0","0.2.7.dev0","0.2.8.dev0","0.2.9.dev0","0.3.0.dev0","0.3.1.dev0","0.3.10.dev0","0.3.11.dev0","0.3.12.dev0","0.3.13.dev0","0.3.14.dev0","0.3.15.dev0","0.3.2.dev0","0.3.3.dev0","0.3.4.dev0","0.3.5.dev0","0.3.6.dev0","0.3.7.dev0","0.3.8.dev0","0.3.9.dev0","0.4.0.dev0","0.4.1.dev0","0.4.2.dev0","0.4.3.dev0","0.4.4.dev0","0.4.5.dev0","0.4.6.dev0","0.4.7.dev0","0.5.0.dev0","0.5.1.dev0","0.9.0b1","0.9.1b1","0.9.2b1","0.9.3b1","0.9.4b1","0.9.5b1","0.9.6b1","0.9.7b1","0.9.8b1","0.9.9b1","1.0.0","1.0.0rc1","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.1.0","1.1.1","1.1.2","1.10.0","1.10.1","1.11.0","1.12.0","1.12.1","1.13.0","1.14.0","1.15.0","1.16.0","1.17.0","1.17.1","1.18.0","1.18.1","1.18.2","1.19.0","1.2.0","1.20.0","1.21.0","1.21.1","1.21.2","1.21.3","1.22.0","1.22.1","1.23.0","1.23.1","1.24.0","1.24.1","1.25.0","1.26.0","1.26.1","1.27.0","1.27.1","1.27.2","1.28.0","1.28.1","1.29.0","1.3.0","1.30.0","1.31.0","1.32.0","1.32.1","1.32.2","1.33.0","1.34.0","1.35.0","1.35.1","1.35.2","1.35.3","1.36.0","1.36.1","1.36.2","1.37.0","1.37.1","1.38.0","1.39.0","1.39.1","1.39.2","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.8.0","1.8.1","1.8.2","1.8.3","1.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-2ww3-72rp-wpp4/GHSA-2ww3-72rp-wpp4.json"}},{"package":{"name":"Microsoft.SemanticKernel.Core","ecosystem":"NuGet","purl":"pkg:nuget/Microsoft.SemanticKernel.Core"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.71.0"}]}],"versions":["0.12.207.1-preview","0.13.277.1-preview","0.13.442.1-preview","0.14.547.1-preview","0.15.230531.5-preview","0.15.230609.2-preview","0.15.231219.1-preview","0.16.230615.1-preview","0.17.230626.1-preview","1.0.0-beta1","1.0.0-beta2","1.0.0-beta3","1.0.0-beta4","1.0.0-beta5","1.0.0-beta6","1.0.0-beta7","1.0.0-beta8","1.0.0-rc1","1.0.0-rc2","1.0.0-rc3","1.0.0-rc4","1.0.1","1.1.0","1.10.0","1.11.0","1.11.1","1.12.0","1.13.0","1.14.0","1.14.1","1.15.0","1.15.1","1.16.0","1.16.1","1.16.2","1.17.0","1.17.1","1.17.2","1.18.0-rc","1.18.1-rc","1.18.2","1.19.0","1.2.0","1.20.0","1.21.0","1.21.1","1.22.0","1.23.0","1.24.0","1.24.1","1.25.0","1.26.0","1.27.0","1.28.0","1.29.0","1.3.0","1.3.1","1.30.0","1.31.0","1.32.0","1.33.0","1.34.0","1.35.0","1.36.0","1.36.1","1.37.0","1.38.0","1.39.0","1.4.0","1.40.0","1.40.1","1.41.0","1.42.0","1.43.0","1.44.0","1.45.0","1.46.0","1.47.0","1.48.0","1.49.0","1.5.0","1.50.0","1.51.0","1.52.0","1.52.1","1.53.0","1.53.1","1.54.0","1.55.0","1.56.0","1.57.0","1.58.0","1.59.0","1.6.0","1.6.1","1.6.2","1.6.3","1.60.0","1.61.0","1.62.0","1.63.0","1.64.0","1.65.0","1.66.0","1.67.0","1.67.1","1.68.0","1.69.0","1.7.0","1.7.1","1.70.0","1.8.0","1.9.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-2ww3-72rp-wpp4/GHSA-2ww3-72rp-wpp4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}