{"id":"CVE-2026-25592","aliases":["CVE-2026-25592","GHSA-2ww3-72rp-wpp4","PYSEC-2026-531"],"related":[],"kind":"vulnerability","state":"published","title":"Semantic Kernel has an Arbitrary File Write via AI Agent Function Calling in .NET SDK","summary":"Semantic Kernel is an SDK used to build, orchestrate, and deploy AI agents and multi-agent systems. Prior to 1.71.0, an Arbitrary File Write vulnerability has been identified in Microsoft's Semantic Kernel .NET SDK, specifically within the SessionsPythonPlugin. The problem has been fixed in Microsoft.SemanticKernel.Core version 1.71.0. As a mitigation, 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Semantic Kernel is an SDK used to build, orchestrate, and deploy AI agents and multi-agent systems. Prior to 1.71.0, an Arbitrary File Write vulnerability has been identified in Microsoft's Semantic Kernel .NET SDK, specifically within the SessionsPythonPlugin. The problem has been fixed in Microsoft.SemanticKernel.Core version 1.71.0. As a mitigation, 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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Semantic Kernel es un SDK utilizado para construir, orquestar y desplegar agentes de IA y sistemas multiagente. Antes de la versión 1.70.0, se ha identificado una vulnerabilidad de escritura arbitraria de archivos en el SDK .NET de Semantic Kernel de Microsoft, específicamente dentro del SessionsPythonPlugin. El problema ha sido solucionado en la versión 1.70.0 de Microsoft.SemanticKernel.Core. Como mitigación, los usuarios pueden crear un Filtro de Invocación de Función que verifica los argumentos que se pasan a cualquier llamada a DownloadFileAsync o UploadFileAsync y asegura que el localFilePath proporcionado esté en una lista de permitidos.","source":"nvd"}],"published":"2026-02-06T18:37:24.000Z","modified":"2026-07-01T20:23:04.850Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 1.71.0","status":"affected"}],"vendor":"microsoft","product":"semantic-kernel","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.39.3"}],"ecosystem":"PyPI","package":"semantic-kernel","purl":"pkg:pypi/semantic-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.71.0"}],"ecosystem":"NuGet","package":"Microsoft.SemanticKernel.Core","purl":"pkg:nuget/Microsoft.SemanticKernel.Core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.39.3"}],"ecosystem":"PyPI","package":"semantic-kernel","purl":"pkg:pypi/semantic-kernel","source":"pysec"}],"references":[{"url":"https://github.com/microsoft/semantic-kernel/security/advisories/GHSA-2ww3-72rp-wpp4","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/microsoft/semantic-kernel/pull/13478/changes#diff-88d3cacba2bfa84eef8f2aa171b34f9940338cbb784a3ffc49f5fe3af1b8943d","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Demos/CodeInterpreterPlugin/Program.cs#L61-L64","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25592","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/microsoft/semantic-kernel","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/semantic-kernel","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-2ww3-72rp-wpp4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-02-09T15:20:46.893Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25592","url":"https://www.cve.org/CVERecord?id=CVE-2026-25592","licence":"CVE Terms of Use","modified":"2026-02-18T23:32:54.483Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2ww3-72rp-wpp4","url":"https://github.com/advisories/GHSA-2ww3-72rp-wpp4","licence":"CC-BY-4.0","modified":"2026-06-29T12:26:18.466Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25592","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25592","licence":"Public domain","modified":"2026-06-17T10:24:55.030Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-531","url":"https://osv.dev/vulnerability/PYSEC-2026-531","licence":"CC-BY-4.0","modified":"2026-07-01T20:23:04.850Z"}],"updatedAt":"2026-11-25T22:59:13.577Z","epss":{"score":0.02521,"percentile":0.85291,"date":"2026-12-01T12:00:22.000Z"}}