CVE-2022-21167 Arbitrary Code Execution
Attackers can execute arbitrary code via unsafe BinaryFormatter deserialization in the SocketClient component of the Masuit.Tools.Core library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-21167?
CVE-2022-21167 is a high-severity unsafe deserialization vulnerability in Masuit.Tools.Core, published on 1 May 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
All versions of package masuit.tools.core are vulnerable to Arbitrary Code Execution via the ReceiveVarData<T> function in the SocketClient.cs component. The socket client in the package can pass in the payload via the user-controllable input after it has been established, because this socket client transmission does not have the appropriate restrictions or type bindings for the BinaryFormatter.
Which versions are affected by CVE-2022-21167?
2 open source packages ship an affected version, including Masuit.Tools.Core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
Masuit.Tools.Core NuGet | All versions to 2.4.8.6 | None |
Masuit.Tools.Core NuGet | All versions to 2.4.8.6 | None |
Products include Ldqk Masuit.tools.
How do I fix CVE-2022-21167?
No fix has been published for CVE-2022-21167 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2022-21167 being exploited?
There is no known exploitation of CVE-2022-21167 in the wild and no public exploit code.
Sources
Also known as GHSA-vh38-ghx6-vmvg.