CVE-2022-48282
HIGH 7.2CVSS 3.1MongoDB .NET/C# Driver vulnerable to Deserialization of Untrusted Data
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
- Published
- 21 Feb 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-7j9m-j397-g4wx
- Sources
- NVDJSONOSV GHSA-7j9m-j397-g4wxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | MEDIUM 6.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | c#_drivercpe:2.3:a:mongodb:c\#_driver:*:*:*:*:*:mongodb:*:* |
< 2.19.0 | 2.19.0 |
| OSV | NuGet | MongoDB.Driver | < 2.19.0 | 2.19.0 |
References
- https://github.com/mongodb/mongo-csharp-driver/releases/tag/v2.19.0 · Release Notes, WEB
- https://jira.mongodb.org/browse/CSHARP-4475 · Patch, Vendor Advisory, 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 21 Feb 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Feb 2023)