# CVE-2022-48282: Deserializing compromised object with MongoDB .NET/C\# Driver may cause remote code execution

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-02-21 · Modified: 2025-03-11
- Aliases: GHSA-7j9m-j397-g4wx
- Record: https://cvemate.com/vulnerability/CVE-2022-48282 · JSON: https://cvemate.com/vulnerability/CVE-2022-48282/json

## Description

```text
Under very specific circumstances (see Required configuration section below), a privileged user is able to cause arbitrary code to be executed which may cause further disruption to services. This is specific to applications written in C#. This affects all MongoDB .NET/C# Driver versions prior to and including v2.18.0

Following configuration must be true for the vulnerability to be applicable:  *  Application must written in C# taking arbitrary data from users and serializing data using _t without any validation AND
  *  Application must be running on a Windows host using the full .NET Framework, not .NET Core AND
  *  Application must have domain model class with a property/field explicitly of type System.Object or a collection of type System.Object (against MongoDB best practice) AND
  *  Malicious attacker must have unrestricted insert access to target database to add a _t discriminator."Following configuration must be true for the vulnerability to be applicable
```

## Signals

- CVSS: 7.2 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.436%, percentile 74.036%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb inc mongodb .net/c\# driver: ≤ v2.18.0
- mongodb c driver: \< 2.19.0
- NuGet MongoDB.Driver (NuGet): \< 2.19.0

## References

- <https://jira.mongodb.org/browse/CSHARP-4475>
- <https://github.com/mongodb/mongo-csharp-driver/releases/tag/v2.19.0>
- <https://security.netapp.com/advisory/ntap-20230324-0003/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-48282>
- <https://github.com/mongodb/mongo-csharp-driver>
- <https://jira.mongodb.org/CSHARP-4475>

---

Data as of 2026-12-05T09:34:53.416Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
