{"id":"PYSEC-2026-531","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","GHSA-2ww3-72rp-wpp4"],"modified":"2026-07-01T20:23:04.850413Z","published":"2026-06-29T11:50:51.513729Z","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"},{"type":"PACKAGE","url":"https://pypi.org/project/semantic-kernel"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2ww3-72rp-wpp4"}],"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/pypa/advisory-database/blob/main/vulns/semantic-kernel/PYSEC-2026-531.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}