Deserialization in MongoDB C\# Driver
CVE-2022-48282
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
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.6 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.014, 72.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- MongoDB C\# Driver
- MongoDB Inc .Net/c# Driver — versions 0
Weakness classification (CWE)
References
- jira.mongodb.org/browse/CSHARP-4475 (Patch, Vendor Advisory)
- github.com/mongodb/mongo-csharp-driver/releases/tag/v2.19.0 (Release Notes)
- security.netapp.com/advisory/ntap-20230324-0003/