CVE-2022-48282Mongodb C# Driver
High 7.2
Follow: this CVE · Mongodb · Mongodb C# Driver We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 7.2
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- Yes
- Published
- Feb 21, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
What happens
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
What to do
- Apply the vendor's security update for C# Driver.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | MongoDB.Driver |
< 2.19.0 |
2.19.0 |
dotnet add package MongoDB.Driver --version 2.19.0 |
Per OSV / GitHub Advisories (GHSA-7j9m-j397-g4wx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongodb | c#_driver | < 2.19.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes
- jira.mongodb.org Patch Vendor Advisory
- security.netapp.com