{"id":"CVE-2022-48282","published":"2023-02-21T18:35:11Z","modified":"2025-03-11T19:20:08Z","title":"Deserializing compromised object with MongoDB .NET/C# Driver may cause remote code execution","vendor":"MongoDB Inc","product":"MongoDB .NET/C# Driver","tier":"tail","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\n\nFollowing 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\n  *  Application must be running on a Windows host using the full .NET Framework, not .NET Core AND\n  *  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\n  *  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\n\n\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01379,"percentile":0.72778,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-4475","tags":[]},{"url":"https://github.com/mongodb/mongo-csharp-driver/releases/tag/v2.19.0","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230324-0003/","tags":[]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":14.56},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc","product":"MongoDB .NET/C# Driver","versions":["<= v2.18.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-03-11T19:19:47.914316Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"MongoDB.Driver","vulnerableRanges":["<2.19.0"],"patched":["2.19.0"],"from":["GHSA-7j9m-j397-g4wx"],"provenance":"source"}],"summary":{"text":"A deserialization flaw in the MongoDB .NET/C# Driver, versions up to and including v2.18.0, lets data from a database be turned into arbitrary objects when a C# application serializes untrusted input using a discriminator (_t) without validation. An attacker who already has privileges and unrestricted insert access to the target database, against an application running on a Windows host with the full .NET Framework (not .NET Core) and a domain model containing System.Object-typed members, could cause arbitrary code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:33Z"},"euvd":{"id":"EUVD-2023-0657","exploited":false,"provenance":"source"}}