Advisory

PYSEC-2026-531

Also known as: CVE-2026-25592, GHSA-2ww3-72rp-wpp4

Summary

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

Details

Impact
_What kind of vulnerability is it? Who is impacted?_
An Arbitrary File Write vulnerability has been identified in Microsoft's Semantic Kernel .NET SDK, specifically within the SessionsPythonPlugin.
Developers who have built applications which include Microsoft's Semantic Kernel .NET SDK and are using the SessionsPythonPlugin

Patches
_Has the problem been patched? What versions should users upgrade to?_
The problem has been fixed in Microsoft.SemanticKernel.Plugins.Core version 1.71.0. Users should upgrade to version 1.71.0 or higher.

Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
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.

### References
_Are there any links users can visit to find out more?_

Severity

Critical Basis: CVSS v3 score 9.9, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:23 UTC

Affected packages and fixes

semantic-kernel

PyPI · All systems

Affected

  • introduced 0, fixed 1.39.3 (ecosystem)

Fixed versions

1.39.3

Fix

  • Fixed version 1.39.3
    pip install --upgrade semantic-kernel==1.39.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences