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

- Severity: Medium 6.6 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.44%, higher than 73% of CVEs (2026-12-02)
- Published: 2023-02-21T18:35:11.643Z
- Modified: 2026-06-17T05:14:54.437Z
- Also known as: GHSA-7j9m-j397-g4wx
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## Description

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

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB .NET/C# Driver: up to v2.18.0
- MongoDB.Driver (NuGet): before 2.19.0
- mongodb c#_driver: before 2.19.0

## Every score

- mongodb: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2022-48282](https://www.cve.org/CVERecord?id=CVE-2022-48282), CVE Terms of Use, modified 2025-03-11
- GitHub Advisory Database: [GHSA-7j9m-j397-g4wx](https://github.com/advisories/GHSA-7j9m-j397-g4wx), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-48282](https://nvd.nist.gov/vuln/detail/CVE-2022-48282), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48282 · Whole record: https://cve.day/CVE-2022-48282.json · Rebuilt by cve.day 2026-11-25T22:58:18.732Z
