This article: https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide puts a ton of fear into never ever using BinaryFormatter in any type of .NET application, even if it is a desktop app where files are only saved on local hard-drive.
We have a .NET Core 3.1 Desktop app that uses the BinaryFormatter
for in-process serialization to/from MemoryStream
. So, the app is NOT deserializing from a physical file. Is this safe, and will the BinaryFormatter
be supported in future versions of .NET Core for such purposes?