You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ILSpy was deserializing arbitrary objects within ".resources" embedded resources.
Using well-known .NET BinaryFormatter deserialization exploits, a malicious assembly could gain code execution when viewing its resources in ILSpy. (for example when clicking the "Resources" node in the ILSpy tree view)
Resources were also loaded when decompiling an assembly into a Visual Studio project.
If you are using ICSharpCode.Decompiler, you are only affected by this vulnerability if you are using the WholeProjectDecompiler class.
The CSharpDecompiler class does not attempt resource deserialization.
This means the experimental ILSpy integration in Visual Studio is not affected.
Warning: the fix only avoids deserializing such resources in ILSpy.
If you save such an assembly as a Visual Studio project, we will copy the serialized bytes as-is into the .resx file. The .resx file may then gain code execution when you re-compile the project in Visual Studio!
The text was updated successfully, but these errors were encountered:
Affected Versions: ILSpy 1.x, 2.x, 3.0.x, 3.1.x
Fixed in: 3.2.0
ILSpy was deserializing arbitrary objects within ".resources" embedded resources.
Using well-known .NET BinaryFormatter deserialization exploits, a malicious assembly could gain code execution when viewing its resources in ILSpy. (for example when clicking the "Resources" node in the ILSpy tree view)
Resources were also loaded when decompiling an assembly into a Visual Studio project.
If you are using ICSharpCode.Decompiler, you are only affected by this vulnerability if you are using the WholeProjectDecompiler class.
The CSharpDecompiler class does not attempt resource deserialization.
This means the experimental ILSpy integration in Visual Studio is not affected.
Warning: the fix only avoids deserializing such resources in ILSpy.
If you save such an assembly as a Visual Studio project, we will copy the serialized bytes as-is into the .resx file. The .resx file may then gain code execution when you re-compile the project in Visual Studio!
The text was updated successfully, but these errors were encountered: